Liferay 6.1.2-ce-ga3

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

public class WebServerServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

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  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 sendDDMRecordFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathArray)
           
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 sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, long contentLength, String contentType)
           
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)
           
 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
 

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

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)

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

sendDDMRecordFile

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

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

sendFileWithRangeHeader

protected void sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       String fileName,
                                       InputStream inputStream,
                                       long contentLength,
                                       String contentType)
                                throws IOException
Throws:
IOException

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

writeImage

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

Liferay 6.1.2-ce-ga3