public class SessionManagerPropertiesImpl extends java.lang.Object implements SessionManagerProperties, SessionPoolProperties, SessionProperties
Constructor and Description |
---|
SessionManagerPropertiesImpl()
Instantiate a SessionManagerProperties implementation using the default properties file location.
|
SessionManagerPropertiesImpl(java.lang.String propertiesFile)
Create a SessionManagerPropertiesImpl using the specified properties file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enforceStrictValidation()
Enforce strict validation of incoming and outgoing service elements.
|
long |
getAcquireTimeout()
The maximum duration of time (specified in milliseconds) to wait when
acquiring a session.
|
java.lang.String |
getClientID()
The client's username (clID in EPP terminology) as used in the EPP login
command.
|
java.lang.String |
getClientPW()
The client's password (pw in EPP terminology) as used in the EPP login
command.
|
long |
getClientTimeout()
Get the session idle time (in milliseconds) after which the keep-alive
feature will allow sessions in the pool to be dropped (will no longer
poll).
|
int |
getCommandLimit()
The maximum number of commands of any type to process in a single
session over a short period of time (default: infinity ).
|
int |
getCommandLimit(CommandType type)
The maximum number of commands of the given type to process in a single
session over a short period of time (default: infinity).
|
long |
getCommandLimitInterval()
The time interval, in milliseconds, over which a command is considered
recent for the purposes of session-specific command limiting (default: 1
second = 1000 ms).
|
java.lang.String[] |
getExtURIs()
Request that the extensions specified by these URIs be available during
the Session configured from these properties.
|
java.lang.String |
getHostname()
The hostname of the EPP server.
|
java.lang.String |
getKeyStoreFilename()
The location of the KeyStore file from which private key and public
certificate data will be read in order to establish a connection with
the EPP server.
|
java.lang.String |
getKeyStorePassphrase()
The passphrase used to protect the KeyStore identified by getKeyStoreFilename.
|
java.lang.String |
getKeyStoreType()
The type of the KeyStore.
|
java.lang.String |
getLanguage()
Request that the EPP server send any language-configurable messages in
this language.
|
int |
getMaximumPoolSize()
Get the maximum number of sessions allowed in the pool.
|
java.lang.String[] |
getObjURIs()
Request that the objects specified by these URIs be managable during the
Session configured from these properties.
|
int |
getPort()
The port on which the EPP server listens (standard port is 700).
|
long |
getServerTimeout()
Get the configured time interval (in milliseconds) after which the EPP
server will close idle connections.
|
SessionPoolProperties |
getSessionPoolProperties() |
SessionProperties |
getSessionProperties() |
int |
getSocketTimeout()
The maximum length of time (specified in milliseconds) to wait for data
to become available on the underlying socket when reading.
|
java.lang.String |
getSSLAlgorithm()
The SSL key manager algorithm to use.
|
java.lang.String |
getSSLVersion()
The SSL version to use.
|
java.lang.String |
getTrustStoreFilename()
The location of the KeyStore file from which Certification Authority
data will be read in order to verify the authenticity of the key
in the accompanying user keystore.
|
java.lang.String |
getTrustStorePassphrase()
The passphrase used to protect the KeyStore identified by getTrustStoreFilename.
|
java.lang.String |
getVersion()
The protocol version of EPP to be used to communicate with the EPP
server.
|
long |
getWaitTimeout()
The maximum time for configured objects to spend in wait() for any
relevant condition, such as session acquisition or release.
|
boolean |
needOutputNamespacePrefixInXml()
Enforce XML output to include namespace prefix.
|
void |
setClientID(java.lang.String id)
Set the client's username (clID in EPP terminology) to be returned by
further calls to getClientID.
|
void |
setClientPW(java.lang.String password)
Set the password to be returned by further calls to getClientPW.
|
public SessionManagerPropertiesImpl() throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public SessionManagerPropertiesImpl(java.lang.String propertiesFile) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public SessionPoolProperties getSessionPoolProperties()
getSessionPoolProperties
in interface SessionManagerProperties
public SessionProperties getSessionProperties()
getSessionProperties
in interface SessionManagerProperties
public java.lang.String getHostname()
SessionProperties
getHostname
in interface SessionProperties
public int getPort()
SessionProperties
getPort
in interface SessionProperties
public java.lang.String getClientID()
SessionProperties
getClientID
in interface SessionProperties
public java.lang.String getClientPW()
SessionProperties
getClientPW
in interface SessionProperties
public java.lang.String getVersion()
SessionProperties
getVersion
in interface SessionProperties
public java.lang.String getLanguage()
SessionProperties
getLanguage
in interface SessionProperties
public java.lang.String[] getObjURIs()
SessionProperties
getObjURIs
in interface SessionProperties
public java.lang.String[] getExtURIs()
SessionProperties
getExtURIs
in interface SessionProperties
public java.lang.String getKeyStoreFilename()
SessionProperties
getKeyStoreFilename
in interface SessionProperties
public java.lang.String getKeyStorePassphrase()
SessionProperties
getKeyStorePassphrase
in interface SessionProperties
public java.lang.String getKeyStoreType()
SessionProperties
getKeyStoreType
in interface SessionProperties
public java.lang.String getTrustStoreFilename()
SessionProperties
getTrustStoreFilename
in interface SessionProperties
public java.lang.String getTrustStorePassphrase()
SessionProperties
getTrustStorePassphrase
in interface SessionProperties
public java.lang.String getSSLVersion()
SessionProperties
getSSLVersion
in interface SessionProperties
public java.lang.String getSSLAlgorithm()
SessionProperties
getSSLAlgorithm
in interface SessionProperties
public int getCommandLimit()
SessionProperties
getCommandLimit
in interface SessionProperties
public int getCommandLimit(CommandType type)
SessionProperties
getCommandLimit
in interface SessionProperties
public long getCommandLimitInterval()
SessionProperties
getCommandLimitInterval
in interface SessionProperties
public int getMaximumPoolSize()
SessionPoolProperties
getMaximumPoolSize
in interface SessionPoolProperties
public long getWaitTimeout()
SessionPoolProperties
getWaitTimeout
in interface SessionPoolProperties
public long getServerTimeout()
SessionPoolProperties
getServerTimeout
in interface SessionPoolProperties
public long getClientTimeout()
SessionPoolProperties
getClientTimeout
in interface SessionPoolProperties
public long getAcquireTimeout()
SessionProperties
getAcquireTimeout
in interface SessionProperties
public int getSocketTimeout()
SessionProperties
getSocketTimeout
in interface SessionProperties
public boolean enforceStrictValidation()
SessionProperties
enforceStrictValidation
in interface SessionProperties
public boolean needOutputNamespacePrefixInXml()
SessionProperties
A namespace prefix is considered in-scope on the declaration element as well as on any of its descendant elements. Once declared, the prefix can be used in front of any element or attribute name separated by a colon (such as s:student).
This complete name including the prefix is the lexical form of a qualified name (QName):
QName = <prefix>:<local name>
If not configured, the default value will be false
.
needOutputNamespacePrefixInXml
in interface SessionProperties
public void setClientPW(java.lang.String password)
SessionProperties
setClientPW
in interface SessionProperties
public void setClientID(java.lang.String id)
SessionProperties
setClientID
in interface SessionProperties