Package com.webmethods.portal.framework
Interface IDispatchManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
The IDispatchManager dispatches requests through the variety of dispatch handlers that it manages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
an attribute that holds anAliasValue
for the alias dispatch handlerstatic final String
'get' is the default HttpServletstatic final String
'get' is the default HttpServletFields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forward
(HttpServletRequest request, HttpServletResponse response, int responseCode) Forward to another dipsatch handlerget normalized request uri.getNormalizedRequestURI
(HttpServletRequest request, boolean urlDecode) get normalized request uri.getRequestedMethod
(HttpServletRequest request, boolean lookupCommand) Check for a 'method=' parameter.void
handleDispatch
(HttpServletRequest request, HttpServletResponse response) The main entry point for managing dispatched requestsvoid
handleError
(HttpServletRequest request, HttpServletResponse response, IExceptionBean exceptionBean) An error has occurred, this is a directive to generically handle generating an appropriate responsevoid
handleMethod
(HttpServletRequest request, HttpServletResponse response, String methodName) This is a directive to invoke a specific dispatch handler based upon its method namevoid
pres
(HttpServletRequest request, HttpServletResponse response) Forward the request to theIPresentationManager
void
redirect
(HttpServletRequest request, HttpServletResponse response) Redirect the client to a new URLvoid
stream
(HttpServletRequest request, HttpServletResponse response) Stream data back to the clientMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Field Details
-
ALIAS_VALUE_ATTR_KEY
an attribute that holds anAliasValue
for the alias dispatch handler- See Also:
-
DEFAULT_METHOD
'get' is the default HttpServlet- See Also:
-
POST_METHOD
'get' is the default HttpServlet- See Also:
-
-
Method Details
-
getRequestedMethod
Check for a 'method=' parameter. If not found, check for a 'command=' parameter. If found, depending on the lookupCommand param, return either the name of the command or 'command'. Otherwise return the default http method (GET or POST, etc...)- Parameters:
request
-lookupCommand
- If this is true and a command is found the name of the command will be returned. If this is false and a command is found, the 'command' will be returned. If no command is found and no method is found, the the default http method will be found.- Returns:
- the requested method
- Throws:
PortalException
-
getNormalizedRequestURI
get normalized request uri. For example, the real uri would be '/server/nis/topic.root' the normalized uri would be '/topic.root'- Parameters:
request
-
-
getNormalizedRequestURI
get normalized request uri. For example, the real uri would be '/server/nis/topic.root' the normalized uri would be '/topic.root'- Parameters:
request
-urlDecode
- whether or not to decode- See Also:
-
handleDispatch
void handleDispatch(HttpServletRequest request, HttpServletResponse response) throws PortalException The main entry point for managing dispatched requests- Parameters:
request
-response
-- Throws:
PortalException
-
handleMethod
void handleMethod(HttpServletRequest request, HttpServletResponse response, String methodName) throws PortalException This is a directive to invoke a specific dispatch handler based upon its method name- Parameters:
request
-response
-methodName
-- Throws:
PortalException
- See Also:
-
handleError
void handleError(HttpServletRequest request, HttpServletResponse response, IExceptionBean exceptionBean) throws PortalException An error has occurred, this is a directive to generically handle generating an appropriate response- Parameters:
request
-response
-exceptionBean
- is the current exception bean.- Throws:
PortalException
- See Also:
-
forward
void forward(HttpServletRequest request, HttpServletResponse response, int responseCode) throws PortalException Forward to another dipsatch handler- Parameters:
request
-response
-responseCode
-- Throws:
PortalException
-
redirect
Redirect the client to a new URL- Parameters:
request
-response
-- Throws:
PortalException
-
stream
Stream data back to the client- Parameters:
request
-response
-- Throws:
PortalException
-
pres
Forward the request to theIPresentationManager
- Parameters:
request
-response
-- Throws:
PortalException
-