| Modifier and Type | Class and Description |
|---|---|
| public static class | ConfigurationSource.
Represents a resource: a stream to the resource associated with its URI. |
| Modifier and Type | Field and Description |
|---|---|
| public static final ConfigurationSource |
| Modifier and Type | Method and Description |
|---|---|
| public default ConfigurationSource. | Returns: the resource as an InputStreamThe resource name name)Get a resource, based on the conf path. |
| public ConfigurationSource. | Returns: the resourceThe resource name name)Get a resource, not based on the conf path. |
| public default ConfigurationSource. | Returns: the server.xml as an InputStreamReturns the contents of the main conf/server.xml file. |
| public default ConfigurationSource. | Returns: the web.xml as an InputStreamReturns the contents of the shared conf/web.xml file. |
| public URI |
| DEFAULT | back to summary |
|---|---|
| public static final ConfigurationSource DEFAULT | |
| getConfResource | back to summary |
|---|---|
| public default ConfigurationSource. Get a resource, based on the conf path.
| |
| getResource | back to summary |
|---|---|
| public ConfigurationSource. Get a resource, not based on the conf path.
| |
| getServerXml | back to summary |
|---|---|
| public default ConfigurationSource. Returns the contents of the main conf/server.xml file.
| |
| getSharedWebXml | back to summary |
|---|---|
| public default ConfigurationSource. Returns the contents of the shared conf/web.xml file. This usually contains the declaration of the default and JSP servlets.
| |
| getURI | back to summary |
|---|---|
| public URI getURI(String name) Get a URI to the given resource. Unlike getResource, this will also return URIs to locations where no resource exists. | |
| Modifier and Type | Field and Description |
|---|---|
| private final InputStream | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| public InputStream | |
| public long | |
| public URI |
| inputStream | back to summary |
|---|---|
| private final InputStream inputStream | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| Resource | back to summary |
|---|---|
| public Resource(InputStream inputStream, URI uri) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() | |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() throws MalformedURLException, IOException | |
| getURI | back to summary |
|---|---|
| public URI getURI() | |