Class ResolverLocalFilesystem
java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
org.apache.xml.security.utils.resolver.implementations.ResolverLocalFilesystem
A simple ResourceResolver for requests into the local filesystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final org.slf4j.Logger
Fields inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method helps theResourceResolver
to decide whether aResourceResolverSpi
is able to perform the requested action.boolean
Tells if the implementation does can be reused by several threads safely.engineResolveURI
(ResourceResolverContext context) This is the workhorse method used to resolve resources.private static URI
private static String
Method translateUriToFilenameMethods inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
engineAddProperies, engineGetProperty, engineGetPropertyKeys, engineSetProperty, fixURI, understandsProperty
-
Field Details
-
FILE_URI_LENGTH
private static final int FILE_URI_LENGTH -
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ResolverLocalFilesystem
public ResolverLocalFilesystem()
-
-
Method Details
-
engineIsThreadSafe
public boolean engineIsThreadSafe()Description copied from class:ResourceResolverSpi
Tells if the implementation does can be reused by several threads safely. It normally means that the implementation does not have any member, or there is member change between engineCanResolve and engineResolve invocations. Or it maintains all member info in ThreadLocal methods.- Overrides:
engineIsThreadSafe
in classResourceResolverSpi
-
engineResolveURI
public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException This is the workhorse method used to resolve resources.- Specified by:
engineResolveURI
in classResourceResolverSpi
- Parameters:
context
- Context to use to resolve resources.- Returns:
- the resource wrapped around a XMLSignatureInput
- Throws:
ResourceResolverException
-
translateUriToFilename
Method translateUriToFilename- Parameters:
uri
-- Returns:
- the string of the filename
-
engineCanResolveURI
This method helps theResourceResolver
to decide whether aResourceResolverSpi
is able to perform the requested action.- Specified by:
engineCanResolveURI
in classResourceResolverSpi
- Parameters:
context
- Context in which to do resolution.- Returns:
- true if the engine can resolve the uri
-
getNewURI
- Throws:
URISyntaxException
-