public class W10nResponder
extends java.lang.Object
Constructor and Description |
---|
W10nResponder(java.lang.String systemPath) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeForJson(java.lang.String s) |
void |
send_w10n_response(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles all w10n service activity.
|
void |
sendFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response)
Transmits a non-data file from the BES to the requesting client.
|
void |
sendNetCDF_3(opendap.w10n.W10nRequest w10nRequest,
int maxResponseSize,
javax.servlet.http.HttpServletResponse response)
Utilizes the BesApi and the BES fileout_netcdf handler to transmit the requested variable
as NetCDF-3 encoded data.
|
void |
sendNetCDF_4(opendap.w10n.W10nRequest w10nRequest,
int maxResponseSize,
javax.servlet.http.HttpServletResponse response)
Utilizes the BesApi and the BES fileout_netcdf handler to transmit the requested variable
as NetCDF-4 encoded data.
|
public void send_w10n_response(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- Incoming client requestresponse
- Outbound response.java.lang.Exception
public void sendNetCDF_3(opendap.w10n.W10nRequest w10nRequest, int maxResponseSize, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, PPTException, BadConfigurationException, BESError
w10nRequest
- The w10nRequest object for the request to be serviced.maxResponseSize
- Max response size.response
- The outgoing response.java.io.IOException
PPTException
BadConfigurationException
BESError
public void sendNetCDF_4(opendap.w10n.W10nRequest w10nRequest, int maxResponseSize, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, PPTException, BadConfigurationException, BESError
w10nRequest
- The w10nRequest object for the request to be serviced.maxResponseSize
- Max response size.response
- The outgoing response.java.io.IOException
PPTException
BadConfigurationException
BESError
public void sendFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
req
- Client requestresponse
- Outbound response.java.lang.Exception
public static java.lang.String escapeForJson(java.lang.String s)