com.silverpeas.peasUtil
Class GoTo
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.silverpeas.peasUtil.GoTo
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- GoToAgenda, GoToComponent, GoToDocument, GoToFile, GoToMyProfile, GoToPublication, GoToSpace, GoToTopic, SimpleDocumentServer
public abstract class GoTo
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Constructor Summary |
GoTo()
|
Method Summary |
void |
displayError(javax.servlet.http.HttpServletResponse res)
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected String |
getContentLanguage(javax.servlet.http.HttpServletRequest request)
Gets the content language specified into the request. |
abstract String |
getDestination(String objectId,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
String |
getObjectId(javax.servlet.http.HttpServletRequest request)
|
String |
getUserId(javax.servlet.http.HttpServletRequest req)
|
boolean |
isUserAllowed(javax.servlet.http.HttpServletRequest req,
String componentId)
|
boolean |
isUserLogin(javax.servlet.http.HttpServletRequest req)
|
protected void |
setGefSpaceId(javax.servlet.http.HttpServletRequest req,
String componentId)
Set GEF and look helper space identifier |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
util
protected static SilverpeasWebUtil util
GoTo
public GoTo()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getDestination
public abstract String getDestination(String objectId,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws Exception
- Throws:
Exception
getObjectId
public String getObjectId(javax.servlet.http.HttpServletRequest request)
isUserLogin
public boolean isUserLogin(javax.servlet.http.HttpServletRequest req)
isUserAllowed
public boolean isUserAllowed(javax.servlet.http.HttpServletRequest req,
String componentId)
getUserId
public String getUserId(javax.servlet.http.HttpServletRequest req)
displayError
public void displayError(javax.servlet.http.HttpServletResponse res)
setGefSpaceId
protected void setGefSpaceId(javax.servlet.http.HttpServletRequest req,
String componentId)
- Set GEF and look helper space identifier
- Parameters:
req
- current HttpServletRequestcomponentId
- the component identifier
getContentLanguage
protected String getContentLanguage(javax.servlet.http.HttpServletRequest request)
- Gets the content language specified into the request.
- Parameters:
request
-
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.