public class DapRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contextpath |
protected String |
datasetpath |
protected ResponseFormat |
format |
protected RequestMode |
mode |
protected Map<String,String> |
queries |
protected String |
querystring |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
protected String |
server |
protected String |
servletpath |
protected ServletInfo |
svcinfo |
protected String |
url |
| Constructor and Description |
|---|
DapRequest(ServletInfo svcinfo,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataset() |
ResponseFormat |
getFormat() |
RequestMode |
getMode() |
String |
getOriginalURL() |
OutputStream |
getOutputStream() |
String |
getPathInfo()
Return the path info from the request url past the servlet name
|
String |
getRealPath(String virtual)
Return the absolute path for the /resources directory
|
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
String |
getServletPath() |
String |
getURL() |
String |
getURLPath() |
protected void |
parse()
The goal of parse() is to extract info
from the underlying HttpRequest and cache it
in this object.
|
String |
queryLookup(String name) |
void |
setResponseHeader(String name,
String value)
Set a request header
|
protected ServletInfo svcinfo
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected String url
protected String servletpath
protected String contextpath
protected String datasetpath
protected String querystring
protected String server
protected RequestMode mode
protected ResponseFormat format
public DapRequest(ServletInfo svcinfo, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DapException
DapExceptionprotected void parse()
throws IOException
IOExceptionpublic javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public OutputStream getOutputStream() throws IOException
IOExceptionpublic String getURL()
public String getOriginalURL()
public String getDataset()
public String getServletPath()
public String getURLPath()
public RequestMode getMode()
public ResponseFormat getFormat()
public void setResponseHeader(String name, String value)
name - the header namevalue - the header valuepublic String getRealPath(String virtual)
public String getPathInfo()
Copyright © 1999-2015 UCAR/Unidata. All Rights Reserved.