|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
org.opennms.netmgt.provision.service.dns.DnsRequisitionUrlConnection
public class DnsRequisitionUrlConnection
Implementation of 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.
| Field Summary | |
|---|---|
static String |
PROTOCOL
Constant PROTOCOL="dns" |
static String |
URL_SCHEME
Constant URL_SCHEME="dns://" |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
DnsRequisitionUrlConnection(URL url)
Constructor for DnsRequisitionUrlConnection. |
| Method Summary | |
|---|---|
void |
connect()
This is a no op. |
protected static String |
decodeQueryString(URL url)
decodeQueryString |
protected static String |
determineExpressionFromUrl(URL url)
determineExpressionFromUrl |
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 |
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:// |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String URL_SCHEME
URL_SCHEME="dns://"
public static final String PROTOCOL
PROTOCOL="dns"
| Constructor Detail |
|---|
protected DnsRequisitionUrlConnection(URL url)
throws MalformedURLException
Constructor for DnsRequisitionUrlConnection.
url - a URL object.
MalformedURLException - if any.| Method Detail |
|---|
public void connect()
throws IOException
connect in class URLConnectionIOException
public InputStream getInputStream()
throws IOException
getInputStream in class URLConnectionIOExceptionpublic String getZone()
getZone
String object.public Long getSerial()
getSerial
Long object.public void setSerial(Long serial)
setSerial
serial - a Long object.public Boolean getFallback()
getFallback
Boolean object.public 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 getDescription()
getDescription
String object.public String toString()
toString
toString in class URLConnectionString object.public URL getUrl()
getUrl
URL object.protected static String determineExpressionFromUrl(URL url)
determineExpressionFromUrl
url - a URL object.
String object.protected static String decodeQueryString(URL url)
decodeQueryString
url - a URL object.
String object.
protected static void validateDnsUrl(URL url)
throws MalformedURLException
url - a URL object.
MalformedURLException - if any.protected static String parseZone(URL url)
url - a URL object.
String object.protected static String parseForeignSource(URL url)
url - a URL object.
String object.public void setForeignSource(String foreignSource)
setForeignSource
foreignSource - a String object.public String getForeignSource()
getForeignSource
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||