Java Code Examples for com.sun.org.apache.xerces.internal.util.HTTPInputSource#setHTTPRequestProperty()
The following examples show how to use
com.sun.org.apache.xerces.internal.util.HTTPInputSource#setHTTPRequestProperty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XIncludeHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * 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; }
Example 2
Source File: XIncludeHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 3
Source File: XIncludeHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 4
Source File: XIncludeHandler.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * 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; }
Example 5
Source File: XIncludeHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 6
Source File: XIncludeHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 7
Source File: XIncludeHandler.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * 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; }
Example 8
Source File: XIncludeHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 9
Source File: XIncludeHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 10
Source File: XIncludeHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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; }
Example 11
Source File: XIncludeHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * 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; }