|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.wcm.server.request.impl.RequestProcessorImpl
public class RequestProcessorImpl
Implementation of the command server that keeps commands stored in a local map for simple configuration. Commands are executed locally in the same JVM process that is running the server.
| Constructor Summary | |
|---|---|
RequestProcessorImpl(ServerContext serverContext) |
|
| Method Summary | ||
|---|---|---|
protected
|
_executeRequest(T command, RequestHandler<? super T> handler)Execute a command against this wcm server |
|
void |
addRequestListener(RequestListener requestListener)Add a request listener for all requests |
|
|
executeRequest(T request)Execute a command against this wcm server |
|
protected void |
initializeRequests()Initialize all the default command objects |
|
protected void |
postExecuteRequest(SiteRequest request, SiteResponse response)Invoke the command listeners after the execution |
|
protected void |
preExecuteRequest(SiteRequest command)Invoke the command listeners before the execution. |
|
|
registerRequest(java.lang.Class<T> request, RequestHandler<? super T> handler, RequestFilter... filters)Register a new request in the system |
|
void |
removeRequestListener(RequestListener requestListener)Remove a request listener |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestProcessorImpl(ServerContext serverContext)
| Method Detail |
|---|
public void addRequestListener(RequestListener requestListener)
RequestProcessoraddRequestListener in interface RequestProcessorrequestListener - the listenerpublic void removeRequestListener(RequestListener requestListener)
RequestProcessorremoveRequestListener in interface RequestProcessorrequestListener - the request listener to removepublic <T extends SiteRequest> SiteResponse executeRequest(T request)
executeRequest in interface RequestProcessorrequest - the command to invoke
public <T extends SiteRequest> void registerRequest(java.lang.Class<T> request,
RequestHandler<? super T> handler,
RequestFilter... filters)
registerRequest in interface RequestProcessorrequest - the request classhandler - the request handlerfilters - (optional) list of filters associated with this requestprotected void preExecuteRequest(SiteRequest command)
command - the command to execute.
protected void postExecuteRequest(SiteRequest request,
SiteResponse response)
request - the commandresponse - the command responseprotected void initializeRequests()
protected <T extends SiteRequest> SiteResponse _executeRequest(T command,
RequestHandler<? super T> handler)
command - the command to invokehandler - the command handler
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||