|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
helma.servlet.AbstractServletClient
public abstract class AbstractServletClient
This is an abstract Hop servlet adapter. This class communicates with hop applications via RMI. Subclasses are either one servlet per app, or one servlet that handles multiple apps
Constructor Summary | |
---|---|
AbstractServletClient()
|
Method Summary | |
---|---|
java.lang.String |
getServletInfo()
Return servlet info |
void |
init(javax.servlet.ServletConfig init)
Init this servlet. |
protected void |
parseParameters(javax.servlet.http.HttpServletRequest request,
RequestTrans reqtrans,
java.lang.String encoding)
|
static void |
parseParameters(java.util.Map map,
byte[] data,
java.lang.String encoding,
boolean isPost)
Append request parameters from the specified String to the specified Map. |
protected java.util.List |
parseUploads(org.apache.commons.fileupload.servlet.ServletRequestContext reqcx,
RequestTrans reqtrans,
UploadStatus uploadStatus,
java.lang.String encoding)
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a request. |
protected void |
writeResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
RequestTrans hopreq,
ResponseTrans hopres)
|
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractServletClient()
Method Detail |
---|
public void init(javax.servlet.ServletConfig init) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
init
- the servlet configuration
javax.servlet.ServletException
- ...protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
request
- ...response
- ...
javax.servlet.ServletException
- ...
java.io.IOException
- ...protected void writeResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, RequestTrans hopreq, ResponseTrans hopres) throws java.io.IOException
java.io.IOException
protected java.util.List parseUploads(org.apache.commons.fileupload.servlet.ServletRequestContext reqcx, RequestTrans reqtrans, UploadStatus uploadStatus, java.lang.String encoding) throws org.apache.commons.fileupload.FileUploadException, java.io.UnsupportedEncodingException
org.apache.commons.fileupload.FileUploadException
java.io.UnsupportedEncodingException
protected void parseParameters(javax.servlet.http.HttpServletRequest request, RequestTrans reqtrans, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public static void parseParameters(java.util.Map map, byte[] data, java.lang.String encoding, boolean isPost) throws java.io.UnsupportedEncodingException
IMPLEMENTATION NOTE: URL decoding is performed individually on the parsed name and value elements, rather than on the entire query string ahead of time, to properly deal with the case where the name or value includes an encoded "=" or "&" character that would otherwise be interpreted as a delimiter. NOTE: byte array data is modified by this method. Caller beware.
map
- Map that accumulates the resulting parametersdata
- Input string containing request parametersencoding
- Encoding to use for converting hex
java.io.UnsupportedEncodingException
- if the data is malformedpublic java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |