com.silverpeas.classifieds.servlets
Class FunctionHandler
java.lang.Object
com.silverpeas.classifieds.servlets.FunctionHandler
- Direct Known Subclasses:
- ClassifiedCreationFormHandler, ClassifiedCreationHandler, ClassifiedDeleteHandler, ClassifiedRefuseHandler, ClassifiedUpdateFormHandler, ClassifiedUpdateHandler, ClassifiedValidateHandler, DefaultHandler, DraftInHandler, DraftOutHandler, ListToValidateHandler, MyClassifiedsHandler, PaginationHandler, SearchHandler, SearchResultsHandler, SubscriptionCreateFormHandler, SubscriptionCreateHandler, SubscriptionDeleteHandler, SubscriptionListHandler, ToWysiwygHeaderHandler, ViewClassifiedHandler
public abstract class FunctionHandler
- extends Object
A functio handler is associated to a peas function and is called by the request router when this
function has to be processed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_DESTINATION
protected static final String ROOT_DESTINATION
- See Also:
- Constant Field Values
FunctionHandler
public FunctionHandler()
computeDestination
public String computeDestination(ClassifiedsSessionController session,
org.silverpeas.servlet.HttpRequest request)
getDestination
public abstract String getDestination(ClassifiedsSessionController session,
org.silverpeas.servlet.HttpRequest request)
throws Exception
- Process the request and returns the response url.
- Parameters:
request
- the user request paramssession
- the user request context
- Throws:
Exception
getPublicationTemplate
protected com.silverpeas.publicationTemplate.PublicationTemplate getPublicationTemplate(ClassifiedsSessionController classifiedsSC)
throws com.silverpeas.publicationTemplate.PublicationTemplateException
- Gets the template of the publication based on the classified XML form.
- Parameters:
classifiedsSC
- the session controller.
- Returns:
- the publication template for classifieds.
- Throws:
com.silverpeas.publicationTemplate.PublicationTemplateException
- if an error occurs while getting the publication template.
isAnonymousAccess
protected boolean isAnonymousAccess(org.silverpeas.servlet.HttpRequest request)
Copyright © 2016 Silverpeas. All Rights Reserved.