public class Configuration extends Object implements Serializable
Constructor and Description |
---|
Configuration() |
Configuration(Integer port,
Integer retry,
Integer timeout,
String readCommunity,
String writeCommunity,
String proxyHost,
String version,
Integer maxVarsPerPdu,
Integer maxRepetitions,
Integer maxRequestSize,
String securityName,
Integer securityLevel,
String authPassphrase,
String authProtocol,
String engineId,
String contextEngineId,
String contextName,
String privacyPassphrase,
String privacyProtocol,
String enterpriseId) |
Modifier and Type | Method and Description |
---|---|
void |
deleteMaxRepetitions() |
void |
deleteMaxRequestSize() |
void |
deleteMaxVarsPerPdu() |
void |
deletePort() |
void |
deleteRetry() |
void |
deleteSecurityLevel() |
void |
deleteTimeout() |
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
String |
getAuthPassphrase()
Returns the value of field 'authPassphrase'.
|
String |
getAuthProtocol()
Returns the value of field 'authProtocol'.
|
String |
getContextEngineId()
Returns the value of field 'contextEngineId'.
|
String |
getContextName()
Returns the value of field 'contextName'.
|
String |
getEngineId()
Returns the value of field 'engineId'.
|
String |
getEnterpriseId()
Returns the value of field 'enterpriseId'.
|
Integer |
getMaxRepetitions()
Returns the value of field 'maxRepetitions'.
|
Integer |
getMaxRequestSize()
Returns the value of field 'maxRequestSize'.
|
Integer |
getMaxVarsPerPdu()
Returns the value of field 'maxVarsPerPdu'.
|
Integer |
getPort()
Returns the value of field 'port'.
|
String |
getPrivacyPassphrase()
Returns the value of field 'privacyPassphrase'.
|
String |
getPrivacyProtocol()
Returns the value of field 'privacyProtocol'.
|
String |
getProxyHost()
Returns the value of field 'proxyHost'.
|
String |
getReadCommunity()
Returns the value of field 'readCommunity'.
|
Integer |
getRetry()
Returns the value of field 'retry'.
|
Integer |
getSecurityLevel()
Returns the value of field 'securityLevel'.
|
String |
getSecurityName()
Returns the value of field 'securityName'.
|
Integer |
getTimeout()
Returns the value of field 'timeout'.
|
String |
getVersion()
Returns the value of field 'version'.
|
String |
getWriteCommunity()
Returns the value of field 'writeCommunity'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
hasMaxRepetitions()
Method hasMaxRepetitions.
|
boolean |
hasMaxRequestSize()
Method hasMaxRequestSize.
|
boolean |
hasMaxVarsPerPdu()
Method hasMaxVarsPerPdu.
|
boolean |
hasPort()
Method hasPort.
|
boolean |
hasRetry()
Method hasRetry.
|
boolean |
hasSecurityLevel()
Method hasSecurityLevel.
|
boolean |
hasTimeout()
Method hasTimeout.
|
boolean |
isValid()
Method isValid.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
setAuthPassphrase(String authPassphrase)
Sets the value of field 'authPassphrase'.
|
void |
setAuthProtocol(String authProtocol)
Sets the value of field 'authProtocol'.
|
void |
setContextEngineId(String contextEngineId)
Sets the value of field 'contextEngineId'.
|
void |
setContextName(String contextName)
Sets the value of field 'contextName'.
|
void |
setEngineId(String engineId)
Sets the value of field 'engineId'.
|
void |
setEnterpriseId(String enterpriseId)
Sets the value of field 'enterpriseId'.
|
void |
setMaxRepetitions(Integer maxRepetitions)
Sets the value of field 'maxRepetitions'.
|
void |
setMaxRequestSize(Integer maxRequestSize)
Sets the value of field 'maxRequestSize'.
|
void |
setMaxVarsPerPdu(Integer maxVarsPerPdu)
Sets the value of field 'maxVarsPerPdu'.
|
void |
setPort(Integer port)
Sets the value of field 'port'.
|
void |
setPrivacyPassphrase(String privacyPassphrase)
Sets the value of field 'privacyPassphrase'.
|
void |
setPrivacyProtocol(String privacyProtocol)
Sets the value of field 'privacyProtocol'.
|
void |
setProxyHost(String proxyHost)
Sets the value of field 'proxyHost'.
|
void |
setReadCommunity(String readCommunity)
Sets the value of field 'readCommunity'.
|
void |
setRetry(Integer retry)
Sets the value of field 'retry'.
|
void |
setSecurityLevel(Integer securityLevel)
Sets the value of field 'securityLevel'.
|
void |
setSecurityName(String securityName)
Sets the value of field 'securityName'.
|
void |
setTimeout(Integer timeout)
Sets the value of field 'timeout'.
|
void |
setVersion(String version)
Sets the value of field 'version'.
|
void |
setWriteCommunity(String writeCommunity)
Sets the value of field 'writeCommunity'.
|
String |
toString() |
static Configuration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public Configuration()
public Configuration(Integer port, Integer retry, Integer timeout, String readCommunity, String writeCommunity, String proxyHost, String version, Integer maxVarsPerPdu, Integer maxRepetitions, Integer maxRequestSize, String securityName, Integer securityLevel, String authPassphrase, String authProtocol, String engineId, String contextEngineId, String contextName, String privacyPassphrase, String privacyProtocol, String enterpriseId)
public void deleteMaxRepetitions()
public void deleteMaxRequestSize()
public void deleteMaxVarsPerPdu()
public void deletePort()
public void deleteRetry()
public void deleteSecurityLevel()
public void deleteTimeout()
public boolean equals(Object obj)
public final String getAuthPassphrase()
public final String getAuthProtocol()
public final String getContextEngineId()
public final String getContextName()
public final String getEngineId()
public final String getEnterpriseId()
public final Integer getMaxRepetitions()
public final Integer getMaxRequestSize()
public final Integer getMaxVarsPerPdu()
public final Integer getPort()
public final String getPrivacyPassphrase()
public final String getPrivacyProtocol()
public final String getProxyHost()
public final String getReadCommunity()
public final Integer getRetry()
public final Integer getSecurityLevel()
public final String getSecurityName()
public final Integer getTimeout()
public final String getVersion()
public final String getWriteCommunity()
public boolean hasMaxRepetitions()
public boolean hasMaxRequestSize()
public boolean hasMaxVarsPerPdu()
public boolean hasPort()
public boolean hasRetry()
public boolean hasSecurityLevel()
public boolean hasTimeout()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshalingorg.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during marshalingorg.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshalingpublic final void setAuthPassphrase(String authPassphrase)
authPassphrase
- the value of field 'authPassphrase'.public final void setAuthProtocol(String authProtocol)
authProtocol
- the value of field 'authProtocol'.public final void setContextEngineId(String contextEngineId)
contextEngineId
- the value of field 'contextEngineId'.public final void setContextName(String contextName)
contextName
- the value of field 'contextName'.public final void setEngineId(String engineId)
engineId
- the value of field 'engineId'.public final void setEnterpriseId(String enterpriseId)
enterpriseId
- the value of field 'enterpriseId'.public final void setMaxRepetitions(Integer maxRepetitions)
maxRepetitions
- the value of field 'maxRepetitions'.public final void setMaxRequestSize(Integer maxRequestSize)
maxRequestSize
- the value of field 'maxRequestSize'.public final void setMaxVarsPerPdu(Integer maxVarsPerPdu)
maxVarsPerPdu
- the value of field 'maxVarsPerPdu'.public final void setPort(Integer port)
port
- the value of field 'port'.public final void setPrivacyPassphrase(String privacyPassphrase)
privacyPassphrase
- the value of field 'privacyPassphrase'.public final void setPrivacyProtocol(String privacyProtocol)
privacyProtocol
- the value of field 'privacyProtocol'.public final void setProxyHost(String proxyHost)
proxyHost
- the value of field 'proxyHost'.public final void setReadCommunity(String readCommunity)
readCommunity
- the value of field 'readCommunity'.public final void setRetry(Integer retry)
retry
- the value of field 'retry'.public final void setSecurityLevel(Integer securityLevel)
securityLevel
- the value of field 'securityLevel'.public final void setSecurityName(String securityName)
securityName
- the value of field 'securityName'.public final void setTimeout(Integer timeout)
timeout
- the value of field 'timeout'.public final void setVersion(String version)
version
- the value of field 'version'.public final void setWriteCommunity(String writeCommunity)
writeCommunity
- the value of field 'writeCommunity'.public static Configuration unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshalingorg.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.