com.liferay.portal.servlet
Class ImageServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.liferay.portal.servlet.ImageServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ImageServlet
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Method Summary |
protected boolean |
checkIGImageThumbnailMaxDimensions(Image image,
long igImageId)
|
protected boolean |
checkUserImageMaxDimensions(Image image,
long imageId)
|
protected Image |
getDefaultImage(javax.servlet.http.HttpServletRequest request,
long imageId)
|
protected Image |
getImage(javax.servlet.http.HttpServletRequest request,
boolean getDefault)
|
protected byte[] |
getImageBytes(javax.servlet.http.HttpServletRequest request,
Image image)
|
protected long |
getImageId(javax.servlet.http.HttpServletRequest request)
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest request)
|
void |
init(javax.servlet.ServletConfig servletConfig)
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
writeImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageServlet
public ImageServlet()
init
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
checkIGImageThumbnailMaxDimensions
protected boolean checkIGImageThumbnailMaxDimensions(Image image,
long igImageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkUserImageMaxDimensions
protected boolean checkUserImageMaxDimensions(Image image,
long imageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDefaultImage
protected Image getDefaultImage(javax.servlet.http.HttpServletRequest request,
long imageId)
throws NoSuchImageException
- Throws:
NoSuchImageException
getImage
protected Image getImage(javax.servlet.http.HttpServletRequest request,
boolean getDefault)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImageBytes
protected byte[] getImageBytes(javax.servlet.http.HttpServletRequest request,
Image image)
getImageId
protected long getImageId(javax.servlet.http.HttpServletRequest request)
getLastModified
protected long getLastModified(javax.servlet.http.HttpServletRequest request)
- Overrides:
getLastModified
in class javax.servlet.http.HttpServlet
writeImage
protected void writeImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException