com.filenet.wcm.apps.server.util.integration
Class ServletCommandService

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.integration.ServletCommandService
All Implemented Interfaces:
CommandService

public class ServletCommandService
extends java.lang.Object
implements CommandService


Constructor Summary
ServletCommandService()
           
 
Method Summary
 ResponseCall getResponseCall(CommandCall command, java.lang.String windowId, javax.servlet.http.HttpServletRequest request, WcmWorkplaceController wwc)
          For dispatching to URL's that go outside of Workplace, a return URL of http://host/Workplace/integrationResponseProxy?windowId=C_...
 void handleCommand(CommandCall command, java.lang.String setWindowId, java.lang.String proxyReturnURL, com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject commandPrefs, javax.servlet.http.HttpServletResponse response, WcmWorkplaceController wwc)
          Handle an integration servlet command that requires special processing in order to determine its final destination.
 boolean registerModules(WcmWorkplaceController wwc)
          Return true if data providers were registered or if authentication is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletCommandService

public ServletCommandService()
Method Detail

handleCommand

public void handleCommand(CommandCall command,
                          java.lang.String setWindowId,
                          java.lang.String proxyReturnURL,
                          com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject commandPrefs,
                          javax.servlet.http.HttpServletResponse response,
                          WcmWorkplaceController wwc)
                   throws com.filenet.wcm.toolkit.util.WcmException
Description copied from interface: CommandService
Handle an integration servlet command that requires special processing in order to determine its final destination. If there is any problem forwarding to the command URL, throw a WcmException.

Specified by:
handleCommand in interface CommandService
Parameters:
command -
setWindowId -
commandPrefs -
response -
Throws:
com.filenet.wcm.toolkit.util.WcmException

getResponseCall

public ResponseCall getResponseCall(CommandCall command,
                                    java.lang.String windowId,
                                    javax.servlet.http.HttpServletRequest request,
                                    WcmWorkplaceController wwc)
                             throws com.filenet.wcm.toolkit.util.WcmException
Description copied from interface: CommandService
For dispatching to URL's that go outside of Workplace, a return URL of http://host/Workplace/integrationResponseProxy?windowId=C_... can be specified. If this is done, when the command returns, this method will be called so that the request parameters coming from the called URL can be examined and an appropriate ResponseCall constructed. If null is returned, the IntegrationServlet will perform default behavior for sending the response.

Specified by:
getResponseCall in interface CommandService
Parameters:
command -
request -
wwc -
Returns:
The populated ResponseCall object ready for sending, or null.
Throws:
com.filenet.wcm.toolkit.util.WcmException

registerModules

public boolean registerModules(WcmWorkplaceController wwc)
                        throws com.filenet.wcm.toolkit.util.WcmException
Description copied from interface: CommandService
Return true if data providers were registered or if authentication is required.

Specified by:
registerModules in interface CommandService
Parameters:
wwc -
Returns:
true or false
Throws:
com.filenet.wcm.toolkit.util.WcmException


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.