|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
dods.servlet.jake.DispatchServlet
dods.servlet.jake.ProxyServlet
public class ProxyServlet
Proxy servlet. This servlet searches its parameter list for a server URL which matches the first component of the path, and if it finds one, acts as a proxy for DODS requests on the remote server. This can be used by DODS applet clients to bypass the default applet security restrictions, which only allow an applet to connect to the host from which they are downloaded.
Note: to use this servlet, you'll need to add servlet parameters of the form:
manta=http://manta.jpl.nasa.gov/cgi-bin/nph-hdf
This will convert a URL of the form:
http://machine/servlets/proxy/manta/foo.hdf
to:
http://manta.jpl.nasa.gov/cgi-bin/nph-hdf/foo.hdf
DispatchServlet
Constructor Summary | |
---|---|
ProxyServlet()
|
Method Summary | |
---|---|
void |
getDAS(HttpServletRequest req,
HttpServletResponse res,
String path,
String ce)
Get the DODS DAS. |
void |
getData(HttpServletRequest req,
HttpServletResponse res,
String path,
String ce,
boolean compress)
Get the DODS Dataset. |
void |
getDDS(HttpServletRequest req,
HttpServletResponse res,
String path,
String ce)
Get the DODS DDS. |
Methods inherited from class dods.servlet.jake.DispatchServlet |
---|
doGet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyServlet()
Method Detail |
---|
public void getDAS(HttpServletRequest req, HttpServletResponse res, String path, String ce) throws ServletException, IOException
getDAS
in class DispatchServlet
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URL
IOException
- if detected when handling the request
ServletException
- if the request could not be handledpublic void getDDS(HttpServletRequest req, HttpServletResponse res, String path, String ce) throws ServletException, IOException
getDDS
in class DispatchServlet
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URL
IOException
- if detected when handling the request
ServletException
- if the request could not be handledpublic void getData(HttpServletRequest req, HttpServletResponse res, String path, String ce, boolean compress) throws ServletException, IOException
getData
in class DispatchServlet
req
- the HttpServletRequest to useres
- the HttpServletResponse to usepath
- the DODS file path in the URLce
- the DODS constraint expression in the URLcompress
- whether to compress the DODS output
IOException
- if detected when handling the request
ServletException
- if the request could not be handled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |