Class ResolverDirectHTTP

java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
org.apache.xml.security.utils.resolver.implementations.ResolverDirectHTTP

public class ResolverDirectHTTP extends ResourceResolverSpi
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 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: