public class HandleServlet extends BridgeServlet
ImageServlet,
AttachmentServlet,
Serialized FormBridgeServlet.QueryParts| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
legalizeFileName |
FILE_PATTERN, MESSAGE_ATTRIBUTEmmbase, retryAfter| Constructor and Description |
|---|
HandleServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Serves a node with a byte[] handle field as an attachment.
|
protected Map<String,Integer> |
getAssociations()
On default, servlets are not associated with any function.
|
protected Cloud |
getClassCloud()
Obtains a cloud using 'class' security.
|
protected String |
getContentDisposition(BridgeServlet.QueryParts query,
Node node,
String def) |
protected String |
getFileName(Node node,
Node titleNode,
String def) |
protected String |
getMimeType(Node node)
Forces download in browsers.
|
protected long |
getSize(NodeManager manager,
Node node) |
void |
init()
Takes care of the 'expire' init-parameter.
|
static void |
main(String[] argv) |
protected void |
sendBytes(javax.servlet.http.HttpServletResponse res,
byte[] bytes)
Deprecated.
|
protected void |
sendBytes(javax.servlet.http.HttpServletResponse res,
InputStream bytes) |
protected boolean |
setCacheControl(javax.servlet.http.HttpServletResponse res,
Node node)
Sets cache-controlling headers.
|
protected boolean |
setContent(BridgeServlet.QueryParts query,
Node node,
String mimeType)
Sets the content disposition header.
|
protected boolean |
setExpires(javax.servlet.http.HttpServletResponse res,
Node node)
Sets the exires header.
|
desperatelyGetNode, findCloud, getAnonymousCloud, getCloud, getCloudName, getLastModified, getNode, getServedNode, readQuery, readQuery, readQueryFromRequestURI, readServletPathassociateMapping, checkInited, decRefCount, destroy, getBasePath, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletInfo, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBasedoDelete, doHead, doOptions, doPost, doPut, doTrace, serviceprotected static final Pattern legalizeFileName
protected Map<String,Integer> getAssociations()
MMBaseServletgetAssociations in class MMBaseServletpublic void init()
throws javax.servlet.ServletException
init in class BridgeServletjavax.servlet.ServletExceptionprotected Cloud getClassCloud()
BridgeServletgetClassCloud in class BridgeServletprotected String getMimeType(Node node)
protected String getContentDisposition(BridgeServlet.QueryParts query, Node node, String def)
protected boolean setContent(BridgeServlet.QueryParts query, Node node, String mimeType) throws IOException
IOExceptionprotected boolean setExpires(javax.servlet.http.HttpServletResponse res,
Node node)
protected boolean setCacheControl(javax.servlet.http.HttpServletResponse res,
Node node)
protected long getSize(NodeManager manager, Node node)
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class MMBaseServletjavax.servlet.ServletExceptionIOExceptionprotected final void sendBytes(javax.servlet.http.HttpServletResponse res,
byte[] bytes)
throws IOException
IOExceptionprotected final void sendBytes(javax.servlet.http.HttpServletResponse res,
InputStream bytes)
throws IOException
IOExceptionpublic static void main(String[] argv)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}