public class WebServerServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
PATH_PORTLET_FILE_ENTRY |
Constructor and Description |
---|
WebServerServlet() |
Modifier and Type | Method and Description |
---|---|
protected com.liferay.portal.kernel.model.Image |
convertFileEntry(boolean smallImage,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
protected com.liferay.portal.kernel.model.Image |
getDefaultImage(javax.servlet.http.HttpServletRequest request,
long imageId) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(String[] pathArray) |
protected com.liferay.portal.kernel.model.Image |
getImage(javax.servlet.http.HttpServletRequest request,
boolean getDefault) |
protected byte[] |
getImageBytes(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.model.Image image) |
protected long |
getImageId(javax.servlet.http.HttpServletRequest request) |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest request) |
protected static com.liferay.portal.kernel.repository.model.FileEntry |
getPortletFileEntry(javax.servlet.http.HttpServletRequest request,
String[] pathArray) |
protected com.liferay.portal.kernel.model.Image |
getUserPortraitImageResized(com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.User user,
String path,
String[] pathArray) |
protected void |
sendFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.liferay.portal.kernel.model.User user,
String[] pathArray) |
protected void |
sendFile(javax.servlet.http.HttpServletResponse response,
com.liferay.portal.kernel.model.User user,
long groupId,
long folderId,
String title) |
protected void |
sendGroups(javax.servlet.http.HttpServletResponse response,
com.liferay.portal.kernel.model.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(com.liferay.portal.kernel.model.Image image,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, service
public static final String PATH_PORTLET_FILE_ENTRY
public static boolean hasFiles(javax.servlet.http.HttpServletRequest request)
VirtualHostFilter
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
protected static com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(javax.servlet.http.HttpServletRequest request, String[] pathArray) throws Exception
Exception
protected com.liferay.portal.kernel.model.Image convertFileEntry(boolean smallImage, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.model.Image getDefaultImage(javax.servlet.http.HttpServletRequest request, long imageId)
protected com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(String[] pathArray) throws Exception
Exception
protected com.liferay.portal.kernel.model.Image getImage(javax.servlet.http.HttpServletRequest request, boolean getDefault) throws Exception
Exception
protected byte[] getImageBytes(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.model.Image image) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected long getImageId(javax.servlet.http.HttpServletRequest request)
protected long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified
in class javax.servlet.http.HttpServlet
protected com.liferay.portal.kernel.model.Image getUserPortraitImageResized(com.liferay.portal.kernel.model.Image image, long imageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected boolean isLegacyImageGalleryImageId(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected boolean isSupportsRangeHeader(String contentType)
protected void processPrincipalException(Throwable t, com.liferay.portal.kernel.model.User user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected void sendDocumentLibrary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.liferay.portal.kernel.model.User user, String path, String[] pathArray) throws Exception
Exception
protected void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.liferay.portal.kernel.model.User user, String[] pathArray) throws Exception
Exception
protected void sendFile(javax.servlet.http.HttpServletResponse response, com.liferay.portal.kernel.model.User user, long groupId, long folderId, String title) throws Exception
Exception
protected void sendGroups(javax.servlet.http.HttpServletResponse response, com.liferay.portal.kernel.model.User user, String path) throws Exception
Exception
protected void sendHTML(javax.servlet.http.HttpServletResponse response, String path, List<WebServerEntry> webServerEntries) throws Exception
Exception
protected void sendPortletFileEntry(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String[] pathArray) throws Exception
Exception
protected void writeImage(com.liferay.portal.kernel.model.Image image, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException