com.sun.org.apache.xerces.internal.util.HTTPInputSource

Here are the examples of the java api class com.sun.org.apache.xerces.internal.util.HTTPInputSource taken from open source projects.

1. XIncludeHandler#createInputSource()

Project: openjdk
File: XIncludeHandler.java
/**
     * Returns a new <code>XMLInputSource</code> from the given parameters.
     */
private XMLInputSource createInputSource(String publicId, String systemId, String baseSystemId, String accept, String acceptLanguage) {
    HTTPInputSource httpSource = new HTTPInputSource(publicId, systemId, baseSystemId);
    if (accept != null && accept.length() > 0) {
        httpSource.setHTTPRequestProperty(XIncludeHandler.HTTP_ACCEPT, accept);
    }
    if (acceptLanguage != null && acceptLanguage.length() > 0) {
        httpSource.setHTTPRequestProperty(XIncludeHandler.HTTP_ACCEPT_LANGUAGE, acceptLanguage);
    }
    return httpSource;
}