Top Fields Constructors Methods
org.apache.catalina.startup

public Class CatalinaBaseConfigurationSource

extends Object
implements ConfigurationSource
Class Inheritance
All Implemented Interfaces
org.apache.tomcat.util.file.ConfigurationSource
Imports
java.io.File, .FileInputStream, .IOException, .InputStream, java.net.MalformedURLException, .URI, .URISyntaxException, .URL, org.apache.tomcat.util.buf.UriUtil, org.apache.tomcat.util.file.ConfigurationSource, org.apache.tomcat.util.res.StringManager

Field Summary

Modifier and TypeField and Description
private final File
private final URI
private final String
protected static final StringManager

Constructor Summary

AccessConstructor and Description
public
CatalinaBaseConfigurationSource(File catalinaBaseFile, String serverXmlPath)

Method Summary

Modifier and TypeMethod and Description
public ConfigurationSource.Resource
getResource(String
The resource name
name
)

Implements org.apache.tomcat.util.file.ConfigurationSource.getResource.

Get a resource, not based on the conf path.

public ConfigurationSource.Resource
getServerXml()

Overrides default org.apache.tomcat.util.file.ConfigurationSource.getServerXml.

Returns the contents of the main conf/server.xml file.

public URI
getURI(String
The resource name
name
)

Implements org.apache.tomcat.util.file.ConfigurationSource.getURI.

Get a URI to the given resource.

private URI
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

catalinaBaseFileback to summary
private final File catalinaBaseFile
catalinaBaseUriback to summary
private final URI catalinaBaseUri
serverXmlPathback to summary
private final String serverXmlPath
smback to summary
protected static final StringManager sm

Constructor Detail

CatalinaBaseConfigurationSourceback to summary
public CatalinaBaseConfigurationSource(File catalinaBaseFile, String serverXmlPath)

Method Detail

getResourceback to summary
public ConfigurationSource.Resource getResource(String name) throws IOException

Implements org.apache.tomcat.util.file.ConfigurationSource.getResource.

Doc from org.apache.tomcat.util.file.ConfigurationSource.getResource.

Get a resource, not based on the conf path.

Parameters
name:String

The resource name

Returns:ConfigurationSource.Resource

the resource

Annotations
@Override
Exceptions
IOException:
if an error occurs or if the resource does not exist
getServerXmlback to summary
public ConfigurationSource.Resource getServerXml() throws IOException

Overrides default org.apache.tomcat.util.file.ConfigurationSource.getServerXml.

Doc from org.apache.tomcat.util.file.ConfigurationSource.getServerXml.

Returns the contents of the main conf/server.xml file.

Returns:ConfigurationSource.Resource

the server.xml as an InputStream

Annotations
@Override
Exceptions
IOException:
if an error occurs or if the resource does not exist
getURIback to summary
public URI getURI(String name)

Implements org.apache.tomcat.util.file.ConfigurationSource.getURI.

Doc from org.apache.tomcat.util.file.ConfigurationSource.getURI.

Get a URI to the given resource. Unlike getResource, this will also return URIs to locations where no resource exists.

Parameters
name:String

The resource name

Returns:URI

a URI representing the resource location

Annotations
@Override
getURIInternalback to summary
private URI getURIInternal(String name)