public class DnsRequisitionUrlConnection extends URLConnection
java.net.URLConnection for handling
URLs specified in the Provisiond configuration requesting an import
requisition based on the A records of a zone transfer for a DNS server.| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOCOL
Constant
PROTOCOL="dns" |
static String |
URL_SCHEME
Constant
URL_SCHEME="dns://" |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
DnsRequisitionUrlConnection(URL url)
Constructor for DnsRequisitionUrlConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
This is a no op.
|
protected static String |
decodeQueryString(URL url)
decodeQueryString
|
protected static String |
determineExpressionFromUrl(URL url)
determineExpressionFromUrl
|
protected static String |
determineLocationFromUrl(URL url) |
InputStream |
getInputStream()
Creates a ByteArrayInputStream implementation of InputStream of the XML marshaled version
of the Requisition class.
|
DnsRequisitionRequest |
getRequest() |
protected static Map<String,String> |
getUrlArgs(URL url) |
protected static String |
parseForeignSource(URL url)
Foreign Source should be the second path entity, if it exists, otherwise it is
set to the value of the zone.
|
protected static String |
parseZone(URL url)
Zone should be the first path entity
dns://
|
protected void |
validateDnsUrl(URL url)
Validate the format is:
dns://
|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringpublic static final String URL_SCHEME
URL_SCHEME="dns://"public static final String PROTOCOL
PROTOCOL="dns"public DnsRequisitionUrlConnection(URL url) throws MalformedURLException
Constructor for DnsRequisitionUrlConnection.
url - a URL object.MalformedURLException - if any.public DnsRequisitionRequest getRequest()
public void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionprotected static String determineExpressionFromUrl(URL url)
determineExpressionFromUrl
protected void validateDnsUrl(URL url) throws MalformedURLException
url - a URL object.MalformedURLException - if any.protected static String parseZone(URL url)
protected static String parseForeignSource(URL url)
Copyright © 2022. All rights reserved.