|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines DNS-proxy service. DNS proxy takes DNS queries from a local client device, forwards the request to a public DNS server, and returns the resolved address to the client.
| Field Summary | |
static java.lang.String |
SERVICE_NAME
service name of this interface for the bundle activator (com.esf.networking.dnsproxy.service.IDnsProxyService) |
| Method Summary | |
boolean |
configFileDoesExist(int persistence)
checks for the existence of DNS proxy configuration file |
java.lang.String |
getAuthoritative(int persistence)
gets the currently defined authoritative DNS server |
int |
getAuthoritativePort(int persistence)
gets the currently defined authoritative DNS server port number |
int |
getAuthoritativeTimeout(int persistence)
gets the authoritative DNS server timeout |
java.util.ArrayList |
getInternalNetworks(int persistence)
gets the current list of networks on which dnsproxy will perform DNS queries |
java.lang.String |
getListen(int persistence)
gets the IP address on which dnsproxy is configured to listen on |
int |
getListenPort(int persistence)
gets the port number on which dnsproxy listens |
java.lang.String |
getRecursive(int persistence)
gets the currently defined DNS server IP address |
int |
getRecursivePort(int persistence)
gets the current recursive DNS server port number |
int |
getRecursiveTimeout(int persistence)
gets the recursive DNS server timeout |
java.util.ArrayList |
getSecurityFeatures(int persistence)
gets the list of currently defined dnsproxy security features |
void |
initialize(int persistence)
|
void |
initialize(java.lang.String authoritative,
int authoritativePort,
int authoritativeTout,
java.lang.String recursive,
int recursivePort,
int recursiveTout,
java.lang.String listen,
int listenPort,
java.util.ArrayList securityFeatures,
java.util.ArrayList internalNetworks,
int persistence)
|
void |
setAuthoritative(java.lang.String authoritative,
int persistence)
sets the authoritative DNS server |
void |
setAuthoritativePort(int authoritativePort,
int persistence)
sets the authoritative DNS server port number |
void |
setAuthoritativeTimeout(int authoritativeTimeout,
int persistence)
sets the authoritative DNS server timeout |
void |
setInternalNetwork(java.lang.String internalNetwork,
int persistence)
Sets 'internal network' entry in appropriate configuration file |
void |
setListen(java.lang.String listen,
int persistence)
sets the IP address on which dnsproxy is configured to listen |
void |
setListenPort(int listenPort,
int persistence)
sets the port number on which dnsproxy listens |
void |
setRecursive(java.lang.String recursive,
int persistence)
sets the recursive DNS server |
void |
setRecursivePort(int recursivePort,
int persistence)
sets the recursive DNS server port number |
void |
setRecursiveTimeout(int recursiveTimeout,
int persistence)
sets the recursive DNS server timeout |
void |
setSecurityFeature(DnsProxySecurityFeature securityFeature,
int persistence)
Sets 'security feature' in appropriate configuration file |
| Field Detail |
public static final java.lang.String SERVICE_NAME
| Method Detail |
public void initialize(int persistence)
throws java.lang.Exception
persistence - as int
java.lang.Exception - if unable to initialize
public void initialize(java.lang.String authoritative,
int authoritativePort,
int authoritativeTout,
java.lang.String recursive,
int recursivePort,
int recursiveTout,
java.lang.String listen,
int listenPort,
java.util.ArrayList securityFeatures,
java.util.ArrayList internalNetworks,
int persistence)
throws java.lang.Exception
authoritative - authoritative IP address to use for DNSauthoritativePort - IP port of authoritative DNS serverauthoritativeTout - timeout to wait for DNS responses from authoritative serverrecursive - recursive IP address to use for DNSrecursivePort - IP port of recursive DNS serverrecursiveTout - timeout to wait for DNS responses from recursive serverlisten - IP address on which dnsproxy is to listenlistenPort - port number of listen IPsecurityFeatures - list of DNS security featuresinternalNetworks - internal networks on which to listen for DNSpersistence - type of persistence for configuration
java.lang.Exception
public void setSecurityFeature(DnsProxySecurityFeature securityFeature,
int persistence)
throws java.lang.Exception
securityFeature - as DnsProxySecurityFeaturepersistence - as int
java.lang.Exception
public void setInternalNetwork(java.lang.String internalNetwork,
int persistence)
throws java.lang.Exception
internalNetwork - IP network on which to listen for DNSpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public boolean configFileDoesExist(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
true if configuration file exists;
false otherwise
java.lang.Exception
public java.lang.String getAuthoritative(int persistence)
throws java.lang.Exception
persistence - as gets the configuration for the given persistence type, as defined in Persistence
String
java.lang.Exception
public void setAuthoritative(java.lang.String authoritative,
int persistence)
throws java.lang.Exception
authoritative - IP address of the new authoritative DNS server to use as Stringpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public int getAuthoritativePort(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setAuthoritativePort(int authoritativePort,
int persistence)
throws java.lang.Exception
authoritativePort - the port number of the authoritative DNS serverpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public int getAuthoritativeTimeout(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setAuthoritativeTimeout(int authoritativeTimeout,
int persistence)
throws java.lang.Exception
authoritativeTimeout - the authoritative DNS server timeoutpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public java.lang.String getListen(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
String
java.lang.Exception
public void setListen(java.lang.String listen,
int persistence)
throws java.lang.Exception
listen - IP address on which dnsproxy is set to listen, as Stringpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public int getListenPort(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setListenPort(int listenPort,
int persistence)
throws java.lang.Exception
listenPort - the port number on which dnsproxy listenspersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setRecursive(java.lang.String recursive,
int persistence)
throws java.lang.Exception
recursive - recursive DNS server IP address, as Stringpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public java.lang.String getRecursive(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
String
java.lang.Exception
public int getRecursivePort(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setRecursivePort(int recursivePort,
int persistence)
throws java.lang.Exception
recursivePort - the current recursive DNS server port numberpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public int getRecursiveTimeout(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public void setRecursiveTimeout(int recursiveTimeout,
int persistence)
throws java.lang.Exception
recursiveTimeout - the recursive DNS server timeoutpersistence - sets the configuration for the given persistence type, as defined in Persistence
java.lang.Exception
public java.util.ArrayList getSecurityFeatures(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
ArrayList of String variables representing the currently defined security features
java.lang.Exception
public java.util.ArrayList getInternalNetworks(int persistence)
throws java.lang.Exception
persistence - gets the configuration for the given persistence type, as defined in Persistence
ArrayList of String variables representing the networks on which dnsproxy will perform queries for
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||