public interface DispatchRequest extends Request
APPLICATION_SCOPE, REQUEST_SCOPE| Modifier and Type | Method and Description | 
|---|---|
| void | dispatch(String path)Dispatches the request to a specified path. | 
| void | include(String path)Includes the response from the specified URL in the current response output. | 
| void | setContentType(String contentType)Sets the content type when rendering the result. | 
getApplicationContext, getAvailableScopes, getContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getPrintWriter, getRequestLocale, getResponseHeaders, getWriter, isResponseCommitted, isUserInRolevoid dispatch(String path) throws IOException
path - The path to dispatch to.IOException - If something goes wrong during dispatching.void include(String path) throws IOException
path - The path to include.IOException - If something goes wrong during inclusion.void setContentType(String contentType)
contentType - The content type. It should follow the specifications
                    from W3C about content types.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.