public class ImageServlet extends HandleServlet
AbstractImages,
Images.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List<?>),
AttachmentServlet,
Serialized FormBridgeServlet.QueryPartslegalizeFileNameFILE_PATTERN, MESSAGE_ATTRIBUTEmmbase, retryAfter| Constructor and Description |
|---|
ImageServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
desperatelyGetNode(Cloud cloud,
String nodeIdentifier)
Overridden to support 'title aliases'.
|
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 |
getMimeType(Node node)
Forces download in browsers.
|
protected Node |
getServedNode(BridgeServlet.QueryParts query,
Node node)
ImageServlet can serve a icache node in stead (using the 'extra parameters)'
|
String |
getServletInfo()
Returns information about this servlet.
|
void |
init()
Takes care of the 'expire' init-parameter.
|
protected boolean |
setContent(BridgeServlet.QueryParts query,
Node node,
String mimeType)
Content-Disposition header
Sets the content disposition header.
|
doGet, getContentDisposition, getFileName, getSize, main, sendBytes, sendBytes, setCacheControl, setExpiresfindCloud, getAnonymousCloud, getCloud, getCloudName, getLastModified, getNode, readQuery, readQuery, readQueryFromRequestURI, readServletPathassociateMapping, checkInited, decRefCount, destroy, getBasePath, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBasedoDelete, doHead, doOptions, doPost, doPut, doTrace, servicepublic void init()
throws javax.servlet.ServletException
HandleServletinit in class HandleServletjavax.servlet.ServletExceptionprotected final Cloud getClassCloud()
BridgeServletgetClassCloud in class HandleServletpublic String getServletInfo()
MMBaseServletgetServletInfo in interface javax.servlet.ServletgetServletInfo in class MMBaseServletprotected Map<String,Integer> getAssociations()
MMBaseServletgetAssociations in class HandleServletprotected String getMimeType(Node node)
HandleServletgetMimeType in class HandleServletprotected boolean setContent(BridgeServlet.QueryParts query, Node node, String mimeType) throws IOException
setContent in class HandleServletIOExceptionprotected Node getServedNode(BridgeServlet.QueryParts query, Node node) throws IOException
getServedNode in class BridgeServletquery - A QueryParts object, which you must have obtained by BridgeServlet.readQuery(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)node - The node which is specified on the URL (obtained by BridgeServlet.getNode(org.mmbase.servlet.BridgeServlet.QueryParts)IOExceptionprotected Node desperatelyGetNode(Cloud cloud, String nodeIdentifier)
desperatelyGetNode in class BridgeServletMMBase 1.9-SNAPSHOT - ${javadoctimestamp}