public class ImageTransformServlet extends FileServlet
Modifier and Type | Class and Description |
---|---|
static class |
ImageTransformServlet.ImageTransforming |
FileServlet.Range
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_ID_URL_DIR_PREFIX |
static long |
COUNT_304 |
static long |
COUNT_ACCESS |
static String |
HASH_PREFIX |
static String |
LOCAL_TEMPLATE_SUFFIX |
static Logger |
logger
create a static logger.
|
static String |
NO_IMAGE_FILE |
static String |
PRELOAD_IMAGE_SUFFIX |
static String |
RESOURCE_TOKEN_KEY |
static String |
SMALL_IMAGE_SUFFIX |
static String |
VIEW_PICTURE_ACTION |
Constructor and Description |
---|
ImageTransformServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Process GET request.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
long |
getLastModified(ContentContext ctx,
String name,
String filter,
String area,
Device device,
Template template,
IImageFilter comp,
ImageConfig.ImageParameters param) |
void |
init() |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean content)
get the text and the picture and build a button
|
doHead, processRequest
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
public static final String RESOURCE_TOKEN_KEY
public static final String PRELOAD_IMAGE_SUFFIX
public static final String SMALL_IMAGE_SUFFIX
public static long COUNT_ACCESS
public static long COUNT_304
public static final String COMPONENT_ID_URL_DIR_PREFIX
public static final String HASH_PREFIX
public static Logger logger
public static final String VIEW_PICTURE_ACTION
public static final String LOCAL_TEMPLATE_SUFFIX
public static final String NO_IMAGE_FILE
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, IOException
FileServlet
doGet
in class FileServlet
javax.servlet.ServletException
IOException
HttpServlet.doGet(HttpServletRequest,
HttpServletResponse)
protected void doPost(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
HttpServlet.doPost(HttpServletRequest,
HttpServletResponse)
public long getLastModified(ContentContext ctx, String name, String filter, String area, Device device, Template template, IImageFilter comp, ImageConfig.ImageParameters param) throws FileNotFoundException
FileNotFoundException
protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean content) throws IOException
processRequest
in class FileServlet
Exception
IOException
Copyright © 2012-2018. All Rights Reserved.