public abstract class AbstractFileServlet extends BaseFilteredServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CLIENT_ID |
protected org.jboss.errai.bus.server.api.SessionProvider |
sessionProvider |
excludes, includes| Constructor and Description |
|---|
AbstractFileServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Path |
convertPath(String fullPath)
Convert fullPath into a Path
|
protected abstract Path |
convertPath(String fileName,
String contextPath)
Convert fileName and contextPath into a Path
|
protected abstract void |
doCreate(Path path,
InputStream data,
javax.servlet.http.HttpServletRequest request,
String comment)
Create a new resource
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doGet acting like a dispatcher.
|
protected abstract InputStream |
doLoad(Path path,
javax.servlet.http.HttpServletRequest request)
Load resource
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Posting accepts content of various types.
|
protected abstract void |
doUpdate(Path path,
InputStream data,
javax.servlet.http.HttpServletRequest request,
String comment)
Update a resource
|
protected String |
getSessionId(javax.servlet.http.HttpServletRequest request,
org.jboss.errai.bus.server.api.SessionProvider sessionProvider) |
void |
init(javax.servlet.ServletConfig config) |
protected void |
processAttachmentDownload(String url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
validateAccess, validateAccessdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String DEFAULT_CLIENT_ID
protected org.jboss.errai.bus.server.api.SessionProvider sessionProvider
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class BaseFilteredServletjavax.servlet.ServletExceptionprotected abstract InputStream doLoad(Path path, javax.servlet.http.HttpServletRequest request)
path - request - protected abstract void doCreate(Path path, InputStream data, javax.servlet.http.HttpServletRequest request, String comment)
path - data - request - comment - protected abstract void doUpdate(Path path, InputStream data, javax.servlet.http.HttpServletRequest request, String comment)
path - data - request - comment - protected abstract Path convertPath(String fileName, String contextPath) throws URISyntaxException
fileName - contextPath - URISyntaxExceptionprotected abstract Path convertPath(String fullPath) throws URISyntaxException
fullPath - URISyntaxExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void processAttachmentDownload(String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected String getSessionId(javax.servlet.http.HttpServletRequest request, org.jboss.errai.bus.server.api.SessionProvider sessionProvider)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.