OfflineResolver.java revision 905b8e215b24a1b5d547692cef530c0d2ab545c9
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: OfflineResolver.java,v 1.2 2008/06/25 05:47:38 qcheng Exp $
*
* Portions Copyrighted 2014-2016 ForgeRock AS.
*/
/**
* This class helps us home users to resolve http URIs without a network
* connection
*
* @author $Author: qcheng $
*/
public class OfflineResolver extends ResourceResolverSpi {
/**
* Method engineResolve
*
* @param uri
* @param BaseURI
* @throws ResourceResolverException
*/
try {
// XMLSignatureInput result = new XMLSignatureInput(inputStream);
return result;
} else {
}
} catch (IOException ex) {
BaseURI);
}
}
/**
* We resolve http URIs <I>without</I> fragment.
*
* @param uri
* @param BaseURI
*/
return false;
}
try {
return true;
}
} catch (URISyntaxException ex) {}
return false;
}
/** Field _uriMap */
/** Field _mimeMap */
/**
* Method register
*
* @param URI
* @param filename
* @param MIME
*/
}
} else {
}
// if the URI contains a fragment, ignore it
return uriNewNoFrag;
}
return newUri;
}
static {
}
}