Interface IDispatchHandler
- All Superinterfaces:
IComponent
,IHandler
,IInitializable
,ISystemHandler
The
IComponent
for the IDispatchManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
There has to be oneIDispatchHandler
that is the 'alias' handlerstatic final String
There has to be oneIDispatchHandler
that is the 'authenticateuser' handlerstatic final String
There has to be oneIDispatchHandler
that is the 'command' handlerstatic final int
Forward the request to another IDispatchHandlerstatic final int
Forward the request to another IDispatchHandlerstatic final int
Forward the request to another IDispatchHandlerstatic final int
Dispatch handling is complete, don't do anything further.static final int
Delegate to theIPresentationManager
static final int
Redirect this request with an http Redirect using thePresentationData
static final int
Stream thePresentationData
back to the userstatic final String
There has to be oneIDispatchHandler
that is the 'error' handlerstatic final String
Sysadmin userIDispatchHandler
handlerstatic final String
There has to be oneIDispatchHandler
that is the 'displaylogin' handlerstatic final String
There has to be oneIDispatchHandler
that is the 'logout' handler -
Method Summary
Modifier and TypeMethodDescriptionint
handle
(HttpServletRequest request, HttpServletResponse response) Handles the request.Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.framework.IHandler
getConfigElem, getHandlerBean, getName, getPerfToken, initialize, postInitialize, shutdown
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init
-
Field Details
-
LOGIN_KEY
There has to be oneIDispatchHandler
that is the 'displaylogin' handler- See Also:
-
AUTHENTICATE_KEY
There has to be oneIDispatchHandler
that is the 'authenticateuser' handler- See Also:
-
LOGOUT_KEY
There has to be oneIDispatchHandler
that is the 'logout' handler- See Also:
-
ERROR_KEY
There has to be oneIDispatchHandler
that is the 'error' handler- See Also:
-
ALIAS_KEY
There has to be oneIDispatchHandler
that is the 'alias' handler- See Also:
-
COMMAND_KEY
There has to be oneIDispatchHandler
that is the 'command' handler- See Also:
-
HANDLE_SYSADMIN
Sysadmin userIDispatchHandler
handler- See Also:
-
DISP_RESPONSE_NONE
static final int DISP_RESPONSE_NONEDispatch handling is complete, don't do anything further.- See Also:
-
DISP_RESPONSE_REDIRECT
static final int DISP_RESPONSE_REDIRECTRedirect this request with an http Redirect using thePresentationData
- See Also:
-
DISP_RESPONSE_FORWARD
static final int DISP_RESPONSE_FORWARDForward the request to another IDispatchHandler- See Also:
-
DISP_RESPONSE_FORWARD_RAW
static final int DISP_RESPONSE_FORWARD_RAWForward the request to another IDispatchHandler- See Also:
-
DISP_RESPONSE_FORWARD_DEFAULT_GET
static final int DISP_RESPONSE_FORWARD_DEFAULT_GETForward the request to another IDispatchHandler- See Also:
-
DISP_RESPONSE_STREAM
static final int DISP_RESPONSE_STREAMStream thePresentationData
back to the user- See Also:
-
DISP_RESPONSE_PRES
static final int DISP_RESPONSE_PRESDelegate to theIPresentationManager
- See Also:
-
-
Method Details
-
handle
Handles the request. The response value tells theDispatchManager
how to further handle the request. Prior to theDispatchManager
delegating to the IDispatchHandler, a PresentationData is associated with the HttpServletRequest. The following response are valid:
- DISP_RESPONSE_NONE: The work is complete, don't do anything further
- DISP_RESPONSE_REDIRECT: Redirect this request with an http Redirect using the
PresentationData
- DISP_RESPONSE_FORWARD: Forward the request to another IDispatchHandler
- DISP_RESPONSE_FORWARD_RAW: Forward the request to another IDispatchHandler without checking the type
- DISP_RESPONSE_FORWARD_DEFAULT_GET: Forward the request to the default get IDispatchHandler for the requested resource
- DISP_RESPONSE_STREAM: Stream the
PresentationData
back to the user - DISP_RESPONSE_PRES: Delegate to the
IPresentationManager
- Parameters:
request
- the current HttpServletRequestresponse
- the current HttpServletResponse- Throws:
FrameworkException
-