URL proxyServerUrl = getProxyServerUrl(originServerUrl);
if (proxyServerUrl == null && !matchesProxyServerException(originServerUrl)) {
proxyServerUrl = getDefaultProxyServerUrl();
}
IContext context = webDAVFactory.newContext(request.getContext());
IContext defaultContext = getContext(originServerUrl);
if (defaultContext == null) {
defaultContext = getDefaultContext();
}
if (defaultContext != null) {
Enumeration e = defaultContext.keys();
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
context.put(key, defaultContext.get(key));
}
}
if (authority != null) {
authority.authorize(request, null, context, proxyServerUrl, true);