Skip navigation links

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

E17273-01


oracle.stellent.wcm.server.request.impl
Class RequestProcessorImpl

java.lang.Object
  extended by oracle.stellent.wcm.server.request.impl.RequestProcessorImpl

All Implemented Interfaces:
RequestProcessor

public class RequestProcessorImpl
extends java.lang.Object
implements RequestProcessor

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
<T extends SiteRequest>
SiteResponse
_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
<T extends SiteRequest>
SiteResponse
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.
<T extends SiteRequest>
void
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

RequestProcessorImpl

public RequestProcessorImpl(ServerContext serverContext)

Method Detail

addRequestListener

public void addRequestListener(RequestListener requestListener)
Description copied from interface: RequestProcessor
Add a request listener for all requests
Specified by:
addRequestListener in interface RequestProcessor
Parameters:
requestListener - the listener

removeRequestListener

public void removeRequestListener(RequestListener requestListener)
Description copied from interface: RequestProcessor
Remove a request listener
Specified by:
removeRequestListener in interface RequestProcessor
Parameters:
requestListener - the request listener to remove

executeRequest

public <T extends SiteRequest> SiteResponse executeRequest(T request)
Execute a command against this wcm server
Specified by:
executeRequest in interface RequestProcessor
Parameters:
request - the command to invoke
Returns:
the server response

registerRequest

public <T extends SiteRequest> void registerRequest(java.lang.Class<T> request,
                                                    RequestHandler<? super T> handler,
                                                    RequestFilter... filters)
Register a new request in the system
Specified by:
registerRequest in interface RequestProcessor
Parameters:
request - the request class
handler - the request handler
filters - (optional) list of filters associated with this request

preExecuteRequest

protected void preExecuteRequest(SiteRequest command)
Invoke the command listeners before the execution.
Parameters:
command - the command to execute.

postExecuteRequest

protected void postExecuteRequest(SiteRequest request,
                                  SiteResponse response)
Invoke the command listeners after the execution
Parameters:
request - the command
response - the command response

initializeRequests

protected void initializeRequests()
Initialize all the default command objects

_executeRequest

protected <T extends SiteRequest> SiteResponse _executeRequest(T command,
                                                               RequestHandler<? super T> handler)
Execute a command against this wcm server
Parameters:
command - the command to invoke
handler - the command handler
Returns:
the server response

Skip navigation links

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

E17273-01


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