public class DapRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected DapController |
controller |
protected String |
controllerpath |
protected String |
datasetpath |
protected ResponseFormat |
format |
protected RequestMode |
mode |
protected Map<String,String> |
queries |
protected String |
querystring |
protected javax.servlet.http.HttpServletRequest |
request |
static String |
RESOURCEDIRNAME |
protected String |
resourceroot |
protected javax.servlet.http.HttpServletResponse |
response |
protected String |
server |
protected javax.servlet.ServletContext |
servletcontext |
protected String |
url |
static String |
WEBINFPATH |
Constructor and Description |
---|
DapRequest(DapController controller,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
String |
getControllerPath() |
String |
getDataset() |
String |
getDatasetPath() |
ResponseFormat |
getFormat() |
RequestMode |
getMode() |
String |
getOriginalURL() |
OutputStream |
getOutputStream() |
javax.servlet.http.HttpServletRequest |
getRequest() |
String |
getResourcePath() |
String |
getResourcePath(String suffix) |
String |
getResourceRoot() |
javax.servlet.http.HttpServletResponse |
getResponse() |
String |
getServer() |
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
|
public static final String WEBINFPATH
public static final String RESOURCEDIRNAME
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected String url
protected String querystring
protected String datasetpath
protected String server
protected RequestMode mode
protected ResponseFormat format
protected DapController controller
protected String controllerpath
protected String resourceroot
protected javax.servlet.ServletContext servletcontext
public DapRequest(DapController controller, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DapException
DapException
protected void parse() throws IOException
IOException
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public OutputStream getOutputStream() throws IOException
IOException
public String getURL()
public String getOriginalURL()
public String getDataset()
public String getServer()
public String getControllerPath()
public String getURLPath()
public RequestMode getMode()
public ResponseFormat getFormat()
public void setResponseHeader(String name, String value)
name
- the header namevalue
- the header valuepublic String getResourcePath()
public String getResourceRoot()
public String getDatasetPath()
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.