|
|||||||||
| 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
org.mmbase.servlet.MMBaseServlet
org.mmbase.servlet.BridgeServlet
org.mmbase.servlet.HandleServlet
Base servlet for nodes with a 'handle' field. It serves as a basic implementation for more specialized servlets. The mime-type is always application/x-binary, forcing the browser to download.
ImageServlet,
AttachmentServlet,
Serialized Form| Field Summary |
| Fields inherited from class org.mmbase.servlet.MMBaseServlet |
mmbase |
| Constructor Summary | |
HandleServlet()
|
|
| Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Serves a node with a byte[] handle field as an attachment. |
protected java.util.Map |
getAssociations()
On default, servlets are not associated with any function. |
protected java.lang.String |
getMimeType(Node node)
|
void |
init()
The init of an MMBaseServlet checks if MMBase is running. |
protected void |
sendBytes(javax.servlet.http.HttpServletResponse res,
byte[] bytes)
Utility function to send bytes at the end of doGet implementation. |
protected boolean |
setCacheControl(javax.servlet.http.HttpServletResponse res,
Node node)
Sets cache-controlling headers. |
protected boolean |
setContent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Node node,
java.lang.String mimeType)
Sets the content disposition header. |
protected boolean |
setExpires(javax.servlet.http.HttpServletResponse res,
Node node)
Sets the exires header. |
| Methods inherited from class org.mmbase.servlet.BridgeServlet |
getAnonymousCloud, getCloud, getCloudName, getLastModified, getNode, readQuery |
| Methods inherited from class org.mmbase.servlet.MMBaseServlet |
associateMapping, decRefCount, destroy, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletInfo, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBase |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, service |
| Methods inherited from class javax.servlet.GenericServlet |
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 HandleServlet()
| Method Detail |
protected java.util.Map getAssociations()
MMBaseServlet
getAssociations in class MMBaseServlet
public void init()
throws javax.servlet.ServletException
MMBaseServlet
init in class BridgeServletjavax.servlet.ServletExceptionprotected java.lang.String getMimeType(Node node)
protected boolean setContent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Node node,
java.lang.String mimeType)
throws java.io.IOException
java.io.IOException
protected boolean setExpires(javax.servlet.http.HttpServletResponse res,
Node node)
protected boolean setCacheControl(javax.servlet.http.HttpServletResponse res,
Node node)
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class MMBaseServletjavax.servlet.ServletException
java.io.IOException
protected final void sendBytes(javax.servlet.http.HttpServletResponse res,
byte[] bytes)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||