Package com.verisign.epp.pool
Class EPPPooledGenericSession
java.lang.Object
com.verisign.epp.interfaces.EPPSession
com.verisign.epp.pool.EPPPooledGenericSession
- All Implemented Interfaces:
EPPPooledSession
Pooled generic
EPPSession. Timestamp attributes were added to
handle absolute session timeout and ensure that idle timeouts don't occur.-
Field Summary
Fields inherited from class com.verisign.epp.interfaces.EPPSession
clientId, codec, connection, extensionServices, inputStream, language, loginAdapter, message, mode, MODE_ASYNC, MODE_SYNC, msgID, newPassword, OP_ACK, OP_REQ, outputStream, password, pollOp, response, responsePacket, sendReceiveLogger, services, transId, version, xmlStream -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPPooledGenericSession.EPPPooledGenericSession(String aHostName, int aPortNumber) Constructor that takes an explicit host name and port number to connect to.EPPPooledGenericSession(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) Constructor that takes an explicit host name and port number to connect to.EPPPooledGenericSession(String aHostName, int aPortNumber, String aClientHost) Constructor that takes an explicit server host name, server port number, and client host name to connect to.EPPPooledGenericSession(String aHostName, int aPortNumber, String aClientHost, EPPSSLContext aSSLContext) Constructor that takes an explicit server host name, server port number, and client host name to connect to. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the session absolute timeout in milliseconds.longGets the time the pooled object was created.longGets the last time the pooled object was touched.booleanHas absolute timeout set?voidsetAbsoluteTimeout(long aAbsoluteTimeout) Sets the session absolute timeout in milliseconds.voidtouch()Sets the last touched to the current time.Methods inherited from class com.verisign.epp.interfaces.EPPSession
addExtensionService, addService, endConnection, endSession, getClientCon, getClientID, getConnection, getExtensionServices, getInputStream, getLoginAdapter, getMode, getMsgID, getNewPassword, getOutputStream, getPassword, getPollOp, getResponse, getServices, getTransId, getVersion, hello, init, init, init, initLoginAdapter, initSession, initSession, initStreams, isModeSupported, login, login, logout, processDocument, processDocument, processGreeting, readResponse, recDocument, sendDocument, sendMessage, sendPacket, sendPoll, setClientID, setExtensions, setExtensionServices, setInputStream, setLang, setLang, setLoginAdapter, setMode, setMsgID, setNewPassword, setOutputStream, setPassword, setPollOp, setServices, setServices, setTransId, setVersion, validateClientTransIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.verisign.epp.pool.EPPPooledSession
hello
-
Constructor Details
-
EPPPooledGenericSession
Default constructor forEPPPooledGenericSession.- Throws:
EPPCommandException- On error
-
EPPPooledGenericSession
Constructor that takes an explicit host name and port number to connect to.- Parameters:
aHostName- Host name or IP address of serveraPortNumber- Server port number- Throws:
EPPCommandException- Error connecting to server
-
EPPPooledGenericSession
public EPPPooledGenericSession(String aHostName, int aPortNumber, String aClientHost) throws EPPCommandException Constructor that takes an explicit server host name, server port number, and client host name to connect to.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHost- Host name or IP address to connect from- Throws:
EPPCommandException- Error connecting to server
-
EPPPooledGenericSession
public EPPPooledGenericSession(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPCommandException Constructor that takes an explicit host name and port number to connect to.- Parameters:
aHostName- Host name or IP address of serveraPortNumber- Server port numberaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Error connecting to server
-
EPPPooledGenericSession
public EPPPooledGenericSession(String aHostName, int aPortNumber, String aClientHost, EPPSSLContext aSSLContext) throws EPPCommandException Constructor that takes an explicit server host name, server port number, and client host name to connect to.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHost- Host name or IP address to connect fromaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Error connecting to server
-
-
Method Details
-
getCreatedTime
public long getCreatedTime()Gets the time the pooled object was created.- Specified by:
getCreatedTimein interfaceEPPPooledSession- Returns:
- Epoch time of creation
-
getLastTouched
public long getLastTouched()Gets the last time the pooled object was touched.- Specified by:
getLastTouchedin interfaceEPPPooledSession- Returns:
- Epoch time of touch
-
touch
public void touch()Sets the last touched to the current time.- Specified by:
touchin interfaceEPPPooledSession
-
hasAbsoluteTimeout
public boolean hasAbsoluteTimeout()Has absolute timeout set?- Returns:
trueif absolute timeout are set;falseotherwise.
-
getAbsoluteTimeout
public long getAbsoluteTimeout()Gets the session absolute timeout in milliseconds.- Specified by:
getAbsoluteTimeoutin interfaceEPPPooledSession- Returns:
- Absolute timeout in milliseconds
-
setAbsoluteTimeout
public void setAbsoluteTimeout(long aAbsoluteTimeout) Sets the session absolute timeout in milliseconds.- Parameters:
aAbsoluteTimeout- Absolute timeout in milliseconds.
-