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
|
static Map<String,String> |
getArgs() |
String |
getDescription()
getDescription
|
Boolean |
getFallback()
getFallback
|
String |
getForeignSource()
getForeignSource
|
InputStream |
getInputStream()
Creates a ByteArrayInputStream implementation of InputStream of the XML marshaled version
of the Requisition class.
|
org.xbill.DNS.TSIG |
getKey()
getKey
|
Long |
getSerial()
getSerial
|
URL |
getUrl()
getUrl
|
protected static Map<String,String> |
getUrlArgs(URL url) |
String |
getZone()
getZone
|
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://
|
void |
setFallback(Boolean fallback)
setFallback
|
void |
setForeignSource(String foreignSource)
setForeignSource
|
void |
setKey(org.xbill.DNS.TSIG key)
setKey
|
void |
setSerial(Long serial)
setSerial
|
String |
toString()
toString
|
protected static 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, setUseCachespublic 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 void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic void setFallback(Boolean fallback)
setFallback
fallback - a Boolean object.public org.xbill.DNS.TSIG getKey()
getKey
TSIG object.public void setKey(org.xbill.DNS.TSIG key)
setKey
key - a TSIG object.public String toString()
toString
toString in class URLConnectionString object.protected static String determineExpressionFromUrl(URL url)
determineExpressionFromUrl
protected static 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)
public void setForeignSource(String foreignSource)
setForeignSource
foreignSource - a String object.Copyright © 2018. All rights reserved.