public class AbstractViewRequest extends DispatchRequestWrapper
dispatch(String)
will cause an inclusion and never a forward.FORCE_INCLUDE_ATTRIBUTE_NAME
APPLICATION_SCOPE, REQUEST_SCOPE
Constructor and Description |
---|
AbstractViewRequest(DispatchRequest request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(String path)
Dispatches the request to a specified path.
|
protected void |
doInclude(String path)
Includes the result.
|
void |
include(String path)
Includes the response from the specified URL in the current response output.
|
getApplicationContext, getAvailableScopes, getContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getPrintWriter, getRequestLocale, getResponseHeaders, getWrappedRequest, getWriter, isResponseCommitted, isUserInRole, setContentType
isForceInclude, setForceInclude
public AbstractViewRequest(DispatchRequest request)
request
- The base request.public void dispatch(String path) throws IOException
DispatchRequestWrapper
dispatch
in interface DispatchRequest
dispatch
in class DispatchRequestWrapper
path
- The path to dispatch to.IOException
- If something goes wrong during dispatching.public void include(String path) throws IOException
DispatchRequestWrapper
include
in interface DispatchRequest
include
in class DispatchRequestWrapper
path
- The path to include.IOException
- If something goes wrong during inclusion.protected void doInclude(String path) throws IOException
path
- The path whose result will be included.IOException
- If something goes wrong.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.