Liferay 6.2-ce-ga5

com.liferay.portal.webserver
Class WebServerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.liferay.portal.webserver.WebServerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
DynamicResourceServlet

public class WebServerServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
static String PATH_PORTLET_FILE_ENTRY
           
 
Constructor Summary
WebServerServlet()
           
 
Method Summary
protected  Image convertFileEntry(boolean smallImage, FileEntry fileEntry)
           
protected  Image getDefaultImage(javax.servlet.http.HttpServletRequest request, long imageId)
           
protected  FileEntry getFileEntry(String[] pathArray)
           
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)
           
protected static FileEntry getPortletFileEntry(javax.servlet.http.HttpServletRequest request, String[] pathArray)
           
protected  Image getUserPortraitImageResized(Image image, long imageId)
           
static boolean hasFiles(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
protected  boolean isLegacyImageGalleryImageId(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  boolean isSupportsRangeHeader(String contentType)
           
protected  void processPrincipalException(Throwable t, User user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void sendDocumentLibrary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, User user, String path, String[] pathArray)
           
protected  void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, User user, String[] pathArray)
           
protected  void sendFile(javax.servlet.http.HttpServletResponse response, User user, long groupId, long folderId, String title)
           
protected  void sendGroups(javax.servlet.http.HttpServletResponse response, User user, String path)
           
protected  void sendHTML(javax.servlet.http.HttpServletResponse response, String path, List<WebServerEntry> webServerEntries)
           
protected  void sendPortletFileEntry(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathArray)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void writeImage(Image image, 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
 

Field Detail

PATH_PORTLET_FILE_ENTRY

public static final String PATH_PORTLET_FILE_ENTRY
See Also:
Constant Field Values
Constructor Detail

WebServerServlet

public WebServerServlet()
Method Detail

hasFiles

public static boolean hasFiles(javax.servlet.http.HttpServletRequest request)
See Also:
VirtualHostFilter

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

getPortletFileEntry

protected static FileEntry getPortletFileEntry(javax.servlet.http.HttpServletRequest request,
                                               String[] pathArray)
                                        throws Exception
Throws:
Exception

convertFileEntry

protected Image convertFileEntry(boolean smallImage,
                                 FileEntry fileEntry)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getDefaultImage

protected Image getDefaultImage(javax.servlet.http.HttpServletRequest request,
                                long imageId)

getFileEntry

protected FileEntry getFileEntry(String[] pathArray)
                          throws Exception
Throws:
Exception

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)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Overrides:
getLastModified in class javax.servlet.http.HttpServlet

getUserPortraitImageResized

protected Image getUserPortraitImageResized(Image image,
                                            long imageId)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

isLegacyImageGalleryImageId

protected boolean isLegacyImageGalleryImageId(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)

isSupportsRangeHeader

protected boolean isSupportsRangeHeader(String contentType)

processPrincipalException

protected void processPrincipalException(Throwable t,
                                         User user,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws IOException,
                                         javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

sendDocumentLibrary

protected void sendDocumentLibrary(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   User user,
                                   String path,
                                   String[] pathArray)
                            throws Exception
Throws:
Exception

sendFile

protected void sendFile(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        User user,
                        String[] pathArray)
                 throws Exception
Throws:
Exception

sendFile

protected void sendFile(javax.servlet.http.HttpServletResponse response,
                        User user,
                        long groupId,
                        long folderId,
                        String title)
                 throws Exception
Throws:
Exception

sendGroups

protected void sendGroups(javax.servlet.http.HttpServletResponse response,
                          User user,
                          String path)
                   throws Exception
Throws:
Exception

sendHTML

protected void sendHTML(javax.servlet.http.HttpServletResponse response,
                        String path,
                        List<WebServerEntry> webServerEntries)
                 throws Exception
Throws:
Exception

sendPortletFileEntry

protected void sendPortletFileEntry(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    String[] pathArray)
                             throws Exception
Throws:
Exception

writeImage

protected void writeImage(Image image,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)

Liferay 6.2-ce-ga5