...
- file - the classpath path to the file to be used as the resource. This should always start with a '/' which represents the root of the classpath.
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example Classpath Resourcexml |
---|
|
<EXAMPLE xsi:type="resource:ClasspathResource"
file="/org/example/data/key.pem" />
|
...
- file - the filesystem path to the file to be used as the resource
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example Filesystem Resourcexml |
---|
|
<EXAMPLE xsi:type="resource:FilesystemResource"
file="/path/to/some/key.pem" />
|
...
- url - the URL to the file to be used as the resource
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example HTTP Resource | xml |
---|
|
<EXAMPLE xsi:type="resource:HttpResource"
url="http://www.example.org/someFile.xml" />
|
...
- url - the URL to the file to be used as the resource
- file - the filesystem path to which the backup file will be written
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example File-backed HTTP Resourcexml |
---|
|
<EXAMPLE xsi:type="resource:FileBackedHttpResource"
url="http://www.example.org/someFile.xml"
file="/path/to/backup/someFile.xml" />
|
...
- connectionTimeout - length of time in milliseconds to wait for the SVN connection to be established - default: 3000 (3 seconds)
- readTimeout - length of time in milliseconds to wait for the SVN checkout to complete - default: 5000 (5 seconds)
- revision - The revision number, a positive integer, that should be retrieved. Revision dates and keywords (e.g. HEAD, PREV) are not supported. Omission of this attribute will cause the HEAD revision to be retrieved.
- username - user name used to authenticate to the remote repository
- password - password used to authentication to the remote repository
- proxyHost - HTTP proxy used through which HTTP/HTTPS connections will be sent
- proxyPort - HTTP proxy port through which HTTP/HTTPS connections will be sent
- proxyUsername - username for the HTTP proxy server
- proxyPassword - password for the HTTP proxy server
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example Subversion Resource | xml |
---|
|
<EXAMPLE xsi:type="resource:SVNResource"
repositoryURL="http://svn.example.org/myProject/some/path"
workingCopyDirectory="/path/to/working/copy"
resourceFile="project.xml"
revision="513" />
|
...
This filter is defined using <ResourceFilter xsi:type="Chaining" xmlns="urn:mace:shibboleth:2.0:resource">
and may contain any number of child <ResourceFilter
elements.
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example Chaining Resource Filterxml |
---|
|
<ResourceFilter xsi:type="Chaining" xmlns="urn:mace:shibboleth:2.0:resource">
<ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
propertyFile="/path/to/file1.properties"/>
<ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
propertyFile="/path/to/file2.properties"/>
</ResourceFilter>
|
...
- propertyFile - Path to the property file whose values will be used to replace the macros in the loaded input resource
Code Block |
---|
| xml |
---|
| xml |
---|
title | Example Property Replaced Resource Filterxml |
---|
|
<ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
propertyFile="/path/to/file1.properties"/>
|