| Modifier and Type | Field and Description |
|---|---|
| pack-priv Resource | |
| pack-priv ByteArrayBuffer | |
| pack-priv ContextHandler | |
| pack-priv MimeTypes | |
| pack-priv String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doResponseHeaders(HttpServletResponse response, Resource resource, String mimeType)
Set the response headers. |
| public void | |
| public Resource | |
| public String | |
| public MimeTypes | |
| public Resource | |
| protected Resource | |
| public String | |
| protected Resource | |
| public String[] | |
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Implements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| _baseResource | back to summary |
|---|---|
| pack-priv Resource _baseResource | |
| _cacheControl | back to summary |
|---|---|
| pack-priv ByteArrayBuffer _cacheControl | |
| _context | back to summary |
|---|---|
| pack-priv ContextHandler _context | |
| _mimeTypes | back to summary |
|---|---|
| pack-priv MimeTypes _mimeTypes | |
| _welcomeFiles | back to summary |
|---|---|
| pack-priv String[] _welcomeFiles | |
| ResourceHandler | back to summary |
|---|---|
| public ResourceHandler() | |
| doResponseHeaders | back to summary |
|---|---|
| protected void doResponseHeaders(HttpServletResponse response, Resource resource, String mimeType) Set the response headers. This method is called to set the response headers such as content type and content length. May be extended to add additional headers. | |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception Overrides org. | |
| getBaseResource | back to summary |
|---|---|
public Resource getBaseResource()
| |
| getCacheControl | back to summary |
|---|---|
public String getCacheControl()
| |
| getMimeTypes | back to summary |
|---|---|
| public MimeTypes getMimeTypes() | |
| getResource | back to summary |
|---|---|
| public Resource getResource(String path) throws MalformedURLException | |
| getResource | back to summary |
|---|---|
| protected Resource getResource(HttpServletRequest request) throws MalformedURLException | |
| getResourceBase | back to summary |
|---|---|
public String getResourceBase()
| |
| getWelcome | back to summary |
|---|---|
| protected Resource getWelcome(Resource directory) throws MalformedURLException, IOException | |
| getWelcomeFiles | back to summary |
|---|---|
| public String[] getWelcomeFiles() | |
| handle | back to summary |
|---|---|
| public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException Implements org. Doc from org. Handle a request.
| |
| setBaseResource | back to summary |
|---|---|
public void setBaseResource(Resource base)
| |
| setCacheControl | back to summary |
|---|---|
public void setCacheControl(String cacheControl)
| |
| setMimeTypes | back to summary |
|---|---|
| public void setMimeTypes(MimeTypes mimeTypes) | |
| setResourceBase | back to summary |
|---|---|
public void setResourceBase(String resourceBase)
| |
| setWelcomeFiles | back to summary |
|---|---|
| public void setWelcomeFiles(String[] welcomeFiles) | |