public interface IDispatchManager extends IComponentProvider
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS_VALUE_ATTR_KEY
an attribute that holds an
com.webmethods.portal.service.cache.impl.AliasValue for the alias dispatch handler |
static String |
DEFAULT_METHOD
'get' is the default HttpServlet
|
static String |
POST_METHOD
'get' is the default HttpServlet
|
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
Modifier and Type | Method and Description |
---|---|
void |
forward(HttpServletRequest request,
HttpServletResponse response,
int responseCode)
Forward to another dipsatch handler
|
String |
getNormalizedRequestURI(HttpServletRequest request)
get normalized request uri.
|
String |
getNormalizedRequestURI(HttpServletRequest request,
boolean urlDecode)
get normalized request uri.
|
String |
getRequestedMethod(HttpServletRequest request,
boolean lookupCommand)
Check for a 'method=' parameter.
|
void |
handleDispatch(HttpServletRequest request,
HttpServletResponse response)
The main entry point for managing dispatched requests
|
void |
handleError(HttpServletRequest request,
HttpServletResponse response,
IExceptionBean exceptionBean)
An error has occurred, this is a directive to generically handle generating an appropriate response
|
void |
handleMethod(HttpServletRequest request,
HttpServletResponse response,
String methodName)
This is a directive to invoke a specific dispatch handler based upon its method name
|
void |
pres(HttpServletRequest request,
HttpServletResponse response)
Forward the request to the
IPresentationManager |
void |
redirect(HttpServletRequest request,
HttpServletResponse response)
Redirect the client to a new URL
|
void |
stream(HttpServletRequest request,
HttpServletResponse response)
Stream data back to the client
|
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
static final String ALIAS_VALUE_ATTR_KEY
com.webmethods.portal.service.cache.impl.AliasValue
for the alias dispatch handlerstatic final String DEFAULT_METHOD
static final String POST_METHOD
String getRequestedMethod(HttpServletRequest request, boolean lookupCommand) throws PortalException
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.PortalException
String getNormalizedRequestURI(HttpServletRequest request)
request
- String getNormalizedRequestURI(HttpServletRequest request, boolean urlDecode)
request
- urlDecode
- whether or not to decodeEncoder.decode(java.lang.String)
void handleDispatch(HttpServletRequest request, HttpServletResponse response) throws PortalException
request
- response
- PortalException
void handleMethod(HttpServletRequest request, HttpServletResponse response, String methodName) throws PortalException
request
- response
- methodName
- PortalException
handleDispatch(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void handleError(HttpServletRequest request, HttpServletResponse response, IExceptionBean exceptionBean) throws PortalException
request
- response
- exceptionBean
- is the current exception bean.PortalException
ExceptionBean
void forward(HttpServletRequest request, HttpServletResponse response, int responseCode) throws PortalException
request
- response
- responseCode
- PortalException
void redirect(HttpServletRequest request, HttpServletResponse response) throws PortalException
request
- response
- PortalException
void stream(HttpServletRequest request, HttpServletResponse response) throws PortalException
request
- response
- PortalException
void pres(HttpServletRequest request, HttpServletResponse response) throws PortalException
IPresentationManager
request
- response
- PortalException