public class DispatcherStreamLocator extends Object
RequestDispatcher .
If the dispatcher fails, it will fallback resource retrieval to a http call using UrlUriLocator.| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_INCLUDED_BY_DISPATCHER
Attribute indicating that the request is included from within a wro request cycle.
|
| Constructor and Description |
|---|
DispatcherStreamLocator() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String location)
/** When using JBoss Portal and it has some funny quirks...actually a portal application have several small web
application behind it.
|
int |
getTimeout() |
static boolean |
isIncludedRequest(javax.servlet.http.HttpServletRequest request) |
InputStream |
locateExternal(javax.servlet.http.HttpServletRequest request,
String location) |
void |
setTimeout(int timeout) |
public static final String ATTRIBUTE_INCLUDED_BY_DISPATCHER
StackOverflowError.public InputStream getInputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String location) throws IOException
location - a path to a request relative resource to locate.IOException - if the stream cannot be located at the specified location.public InputStream locateExternal(javax.servlet.http.HttpServletRequest request, String location) throws IOException
IOExceptionpublic static boolean isIncludedRequest(javax.servlet.http.HttpServletRequest request)
public void setTimeout(int timeout)
timeout - time (in millis) used when an external url is requested for both: connection & read.public int getTimeout()
Copyright © 2008-2014. All Rights Reserved.