@Deprecated public class DispatchRequestWrapper extends AbstractRequest implements RequestWrapper
FORCE_INCLUDE_ATTRIBUTE_NAME
APPLICATION_SCOPE, REQUEST_SCOPE
Constructor and Description |
---|
DispatchRequestWrapper(DispatchRequest context)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(String path)
Deprecated.
Dispatches the request to a specified path.
|
ApplicationContext |
getApplicationContext()
Deprecated.
Returns the associated application context.
|
List<String> |
getAvailableScopes()
Deprecated.
Returns all available scopes.
|
Map<String,Object> |
getContext(String scope)
Deprecated.
Returns a context map, given the scope name.
|
Map<String,String> |
getHeader()
Deprecated.
Return an immutable Map that maps header names to the first (or only)
header value (as a String).
|
Map<String,String[]> |
getHeaderValues()
Deprecated.
Return an immutable Map that maps header names to the set of all values
specified in the request (as a String array).
|
OutputStream |
getOutputStream()
Deprecated.
Returns an output stream to be used to write directly in the response.
|
Map<String,String> |
getParam()
Deprecated.
Return an immutable Map that maps request parameter names to the first
(or only) value (as a String).
|
Map<String,String[]> |
getParamValues()
Deprecated.
Return an immutable Map that maps request parameter names to the set of
all values (as a String array).
|
PrintWriter |
getPrintWriter()
Deprecated.
Returns a print writer to be used to write directly in the response.
|
Locale |
getRequestLocale()
Deprecated.
Return the preferred Locale in which the client will accept content.
|
Addable<String> |
getResponseHeaders()
Deprecated.
Return an Addable object that can be used to write headers to the response.
|
DispatchRequest |
getWrappedRequest()
Deprecated.
Returns the wrapped Tiles request.
|
Writer |
getWriter()
Deprecated.
Returns a writer to be used to write directly in the response.
|
void |
include(String path)
Deprecated.
Includes the response from the specified URL in the current response output.
|
boolean |
isResponseCommitted()
Deprecated.
Checks if the response has been committed.
|
boolean |
isUserInRole(String role)
Deprecated.
Determine whether or not the specified user is in the given role.
|
void |
setContentType(String contentType)
Deprecated.
Sets the content type when rendering the result.
|
isForceInclude, setForceInclude
public DispatchRequestWrapper(DispatchRequest context)
context
- The request context to wrap.public DispatchRequest getWrappedRequest()
getWrappedRequest
in interface RequestWrapper
public Map<String,String> getHeader()
public Map<String,String[]> getHeaderValues()
getHeaderValues
in interface Request
public Addable<String> getResponseHeaders()
getResponseHeaders
in interface Request
public Map<String,Object> getContext(String scope)
getContext
in interface Request
scope
- The name of the scope.public List<String> getAvailableScopes()
getAvailableScopes
in interface Request
public ApplicationContext getApplicationContext()
getApplicationContext
in interface Request
public void dispatch(String path) throws IOException
dispatch
in interface DispatchRequest
path
- The path to dispatch to.IOException
- If something goes wrong during dispatching.public void include(String path) throws IOException
include
in interface DispatchRequest
path
- The path to include.IOException
- If something goes wrong during inclusion.public OutputStream getOutputStream() throws IOException
getOutputStream
in interface Request
IOException
- If something goes wrong when getting the output stream.public Writer getWriter() throws IOException
getWriter
in interface Request
IOException
- If something goes wrong when getting the writer.public PrintWriter getPrintWriter() throws IOException
getPrintWriter
in interface Request
IOException
- If something goes wrong when getting the print
writer.public boolean isResponseCommitted()
isResponseCommitted
in interface Request
true
only if the response has been committed.public void setContentType(String contentType)
setContentType
in interface DispatchRequest
contentType
- The content type. It should follow the specifications
from W3C about content types.public Map<String,String> getParam()
public Map<String,String[]> getParamValues()
getParamValues
in interface Request
public Locale getRequestLocale()
getRequestLocale
in interface Request
org.apache.tiles.locale.LocaleResolver
to implement strategies to
resolve locales.public boolean isUserInRole(String role)
isUserInRole
in interface Request
role
- the role to check against.true
if the user is in the given role.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.