0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * A simple ResourceResolver for HTTP requests. This class handles only 'pure' 0N/A * HTTP URIs which means without a fragment. The Fragment handling is done by the 0N/A * {@link ResolverFragment} class. 0N/A * If the user has a corporate HTTP proxy which is to be used, the usage can be 0N/A * switched on by setting properties for the resolver: 0N/A * resourceResolver.setProperty("http.proxy.host", "proxy.company.com"); 0N/A * resourceResolver.setProperty("http.proxy.port", "8080"); 0N/A * // if we need a password for the proxy 0N/A * resourceResolver.setProperty("http.proxy.username", "proxyuser3"); 0N/A * resourceResolver.setProperty("http.proxy.password", "secretca"); 0N/A * @author $Author: mullan $ 0N/A * $todo$ the proxy behaviour seems not to work; if a on-existing proxy is set, it works ?!? 0N/A /** {@link java.util.logging} logging facility */ 0N/A /** Field properties[] */ 661N/A {
"http.proxy.host",
"http.proxy.port",
661N/A "http.basic.password" };
0N/A /** Field HttpProxyHost */ 0N/A /** Field HttpProxyPort */ 0N/A /** Field HttpProxyUser */ 0N/A /** Field HttpProxyPass */ 0N/A /** Field HttpProxyUser */ 0N/A /** Field HttpProxyPass */ 0N/A * @throws ResourceResolverException 0N/A * $todo$ calculate the correct URI from the attribute and the BaseURI 661N/A // switch on proxy usage 0N/A // calculate new URI 0N/A // if the URI contains a fragment, ignore it 0N/A // or was it Proxy-Authenticate ? 0N/A // check if Basic authentication is required 0N/A // do http basic authentication 0N/A // set authentication property in the http header 0N/A // XMLSignatureInput result = new XMLSignatureInput(inputStream); 0N/A // switch off proxy usage 0N/A * We resolve http URIs <I>without</I> fragment... 0N/A * @return true if can be resolved