public abstract class AbstractClientRequest extends AbstractRequest
FORCE_INCLUDE_ATTRIBUTE_NAMEAPPLICATION_SCOPE, REQUEST_SCOPE| Constructor and Description |
|---|
AbstractClientRequest(ApplicationContext applicationContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(String path)
Dispatches the request to a specified path.
|
protected abstract void |
doForward(String path)
Forwards to a path.
|
protected abstract void |
doInclude(String path)
Includes the result of a path.
|
ApplicationContext |
getApplicationContext()
Returns the associated application context.
|
Map<String,Object> |
getApplicationScope()
Returns the application scope.
|
void |
include(String path)
Includes the response from the specified URL in the current response output.
|
isForceInclude, setForceIncludeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetContentTypegetAvailableScopes, getContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getPrintWriter, getRequestLocale, getResponseHeaders, getWriter, isResponseCommitted, isUserInRolepublic AbstractClientRequest(ApplicationContext applicationContext)
applicationContext - The application context.public void dispatch(String path) throws IOException
DispatchRequestpath - The path to dispatch to.IOException - If something goes wrong during dispatching.public void include(String path) throws IOException
DispatchRequestpath - The path to include.IOException - If something goes wrong during inclusion.public ApplicationContext getApplicationContext()
Requestpublic Map<String,Object> getApplicationScope()
protected abstract void doForward(String path) throws IOException
path - The path to forward to.IOException - If something goes wrong when forwarding.protected abstract void doInclude(String path) throws IOException
path - The path to forward to.IOException - If something goes wrong when forwarding.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.