Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.server.request
Class SiteRequestHandler<R extends SiteRequest,L extends SiteRequestLogic<R>>

java.lang.Object
  extended by oracle.stellent.wcm.server.request.SiteRequestHandler<R,L>

Direct Known Subclasses:
ContributorJSHandler, DataFileHandler, DynamicListHandler, ElementHandler, IdcServiceHandler, MetadataHandler, PageHandler, PlaceholderHandler, UrlHandler

public abstract class SiteRequestHandler<R extends SiteRequest,L extends SiteRequestLogic<R>>
extends java.lang.Object

Constructor Summary
SiteRequestHandler(ClientApplication clientApplication, L requestLogic)
           

 

Method Summary
protected abstract  SiteResponse applyLogic(R siteRequest)
          Handle this command
protected  L getLogic()
           
protected  ClientApplication getServerContext()
           
protected  SiteResponse handleLogicError(R siteRequest, SiteRequestException exp)
          Handle an error occurring while processing the command
 SiteResponse handleSiteRequest(R siteRequest)
          Invoke the WCM command to generate a corresponding WCM response
protected  void validateSiteRequest(R siteRequest)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SiteRequestHandler

public SiteRequestHandler(ClientApplication clientApplication,
                          L requestLogic)

Method Detail

getLogic

protected L getLogic()
Returns:
the associated command logic, may be null

getServerContext

protected ClientApplication getServerContext()

handleSiteRequest

public final SiteResponse handleSiteRequest(R siteRequest)
Invoke the WCM command to generate a corresponding WCM response
Parameters:
siteRequest - the command object
Returns:
a wcm response

validateSiteRequest

protected void validateSiteRequest(R siteRequest)
                            throws SiteRequestException
Throws:
SiteRequestException

applyLogic

protected abstract SiteResponse applyLogic(R siteRequest)
                                    throws SiteRequestException
Handle this command
Parameters:
siteRequest - the site command
Returns:
the response for this command
Throws:
SiteRequestException

handleLogicError

protected SiteResponse handleLogicError(R siteRequest,
                                        SiteRequestException exp)
Handle an error occurring while processing the command
Parameters:
siteRequest - the site command
exp - the error
Returns:
the error response

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.