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, processRequestdoDelete, doOptions, doPut, doTrace, getLastModified, service, servicepublic 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.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
FileServletdoGet in class FileServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.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.HttpServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.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
FileNotFoundExceptionprotected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean content)
throws IOException
processRequest in class FileServletExceptionIOExceptionCopyright © 2012-2018. All Rights Reserved.