|
||||||||||
| 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
com.yworks.yfiles.server.graphml.servlets.UploadServlet
Simple upload servlet that takes the request from a client and sends the content back in the response.
This servlet expects "multipart/form-data" as sent from a call to flash.net.FileReference.upload
or a com.yfiles.remote.UploadHandler.
| Constructor Summary | |
UploadServlet()
Calls the UploadServlet(String) constructor using
AbstractGraphRoundtripSupport.PARAM_GRAPH
as the parameter name. |
|
UploadServlet(java.lang.String graphParameter)
Creates a new instance using the provided parameter to get the graphml string from the HttpServletRequest. |
|
| Method Summary | |
protected void |
doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected void |
doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected java.lang.String |
getContentType()
Get the content type that will be used for the response header. |
protected java.util.HashMap |
parseMultipart(HttpServletRequest request)
Parses the HttpServletRequest's InputStream for the parameters of a
multipart/form-data encoded request. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UploadServlet()
UploadServlet(String) constructor using
AbstractGraphRoundtripSupport.PARAM_GRAPH
as the parameter name.
public UploadServlet(java.lang.String graphParameter)
HttpServletRequest.
graphParameter - the name of the parameter of null if the ServletInputStream
shall be used.| Method Detail |
protected void doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws java.io.IOException,
ServletException
java.io.IOException
ServletExceptionprotected java.lang.String getContentType()
Depending on the servlet container configuration, the response content type might determine whether the servlet container sends a compressed response.
"text/xml".
protected void doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
java.io.IOException
ServletException
java.io.IOException
protected java.util.HashMap parseMultipart(HttpServletRequest request)
throws java.io.IOException
HttpServletRequest's InputStream for the parameters of a
multipart/form-data encoded request.
request - The request to parse.
HashMap with the parameter names as key and the content as value
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||