|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.util.resource.PropertyReplacementResourceFilter
public class PropertyReplacementResourceFilter
A resource filter that buffers a resource into a string and replaces instance of macros with properties read from a
file. Macros are of the syntax '${MACRO_NAME}', the same syntax used within the Java Expression Language.
The property file is read at invocation of this filter.
The InputStream should be a character stream as InputStreamReader will be used to convert the stream
into a string.
| Constructor Summary | |
|---|---|
PropertyReplacementResourceFilter(java.io.File propertyFile)
Constructor. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
applyFilter(java.io.InputStream resource)
Applies this filter to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyReplacementResourceFilter(java.io.File propertyFile)
propertyFile - property file whose properties will be expanded within the resource| Method Detail |
|---|
public java.io.InputStream applyFilter(java.io.InputStream resource)
throws ResourceException
applyFilter in interface ResourceFilterresource - Resource to which the filter should apply.
ResourceException - thrown is there if a problem applying the filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||