Module org.apache.santuario.xmlsec
Class ResolverDirectHTTP
java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
org.apache.xml.security.utils.resolver.implementations.ResolverDirectHTTP
A simple ResourceResolver for HTTP requests. This class handles only 'pure'
HTTP URIs which means without a fragment. The Fragment handling is done by the
If the user has a corporate HTTP proxy which is to be used, the usage can be switched on by setting properties for the resolver:
ResolverFragment class.
If the user has a corporate HTTP proxy which is to be used, the usage can be switched on by setting properties for the resolver:
resourceResolver.setProperty("http.proxy.host", "proxy.company.com");
resourceResolver.setProperty("http.proxy.port", "8080");
// if we need a password for the proxy
resourceResolver.setProperty("http.proxy.username", "proxyuser3");
resourceResolver.setProperty("http.proxy.password", "secretca");
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWe resolve http URIs without fragment...engineResolveURI(ResourceResolverContext context) This is the workhorse method used to resolve resources.
-
Constructor Details
-
ResolverDirectHTTP
public ResolverDirectHTTP() -
ResolverDirectHTTP
-
-
Method Details
-
engineResolveURI
public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException This is the workhorse method used to resolve resources.- Specified by:
engineResolveURIin classResourceResolverSpi- Parameters:
context- Context to use to resolve resources.- Returns:
- the resource wrapped around a XMLSignatureInput
- Throws:
ResourceResolverException
-
engineCanResolveURI
We resolve http URIs without fragment...- Specified by:
engineCanResolveURIin classResourceResolverSpi- Parameters:
context-- Returns:
- true if can be resolved
-