Package com.verisign.epp.interfaces
Class EPPQuicSession
- java.lang.Object
-
- com.verisign.epp.interfaces.EPPSession
-
- com.verisign.epp.interfaces.EPPQuicSession
-
- Direct Known Subclasses:
EPPPooledGenericQuicSession
public class EPPQuicSession extends EPPSession
EPPQuicSession provides behavior for communicating with an EPP Server using the QUIC protocol as the transport.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEOQ_CONNECTION_START_PACKETPacket sent when the client starts an EoQ connection, which is a QUIC stream-
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, services, transId, version, xmlStream
-
-
Constructor Summary
Constructors Constructor Description EPPQuicSession()Contact anEPPQuicSessioninstance using the URL generated from the "EPP.ServerName" and "EPP.ServerPort" configuration properties.EPPQuicSession(java.lang.String aUrl)Construct anEPPQuicSessioninstance that points to the given URL.EPPQuicSession(java.lang.String aHostName, int aPortNumber)Construct anEPPQuicSessioninstance that dynamically creates the server URL to connect to based on the host name and port number.EPPQuicSession(java.lang.String aHostName, int aPortNumber, EPPSSLContext aSSLContext)Construct anEPPQuicSessioninstance that dynamically creates the server URL to connect to based on the host name and port number, with anSSLContext.EPPQuicSession(java.lang.String aUrl, EPPSSLContext aSSLContext)Construct anEPPQuicSessioninstance that points to the given URL and anEPPSSLContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetUrl()Gets the server URL to connect to.voidinit()Helper method called by constructor to perform any initialization required for theEPPQuicSessionclass.voidsetUrl(java.lang.String aUrl)Sets the server URL to connect to.-
Methods inherited from class com.verisign.epp.interfaces.EPPSession
endConnection, endSession, getClientCon, getClientID, getConnection, getInputStream, getLoginAdapter, getMode, getMsgID, getNewPassword, getOutputStream, getPassword, getPollOp, getResponse, getTransId, getVersion, hello, init, init, initLoginAdapter, initSession, initSession, initStreams, isModeSupported, login, login, logout, processDocument, processDocument, processGreeting, readResponse, recDocument, sendDocument, sendMessage, sendPacket, sendPoll, setClientID, setExtensions, setInputStream, setLang, setLang, setLoginAdapter, setMode, setMsgID, setNewPassword, setOutputStream, setPassword, setPollOp, setServices, setTransId, setVersion, validateClientTransId
-
-
-
-
Field Detail
-
EOQ_CONNECTION_START_PACKET
public static final java.lang.String EOQ_CONNECTION_START_PACKET
Packet sent when the client starts an EoQ connection, which is a QUIC stream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPQuicSession
public EPPQuicSession() throws EPPCommandExceptionContact anEPPQuicSessioninstance using the URL generated from the "EPP.ServerName" and "EPP.ServerPort" configuration properties. The host name "localhost" and port number 1700, will result in the URL "eoq://localhost:1700".- Throws:
EPPCommandException- Error initializing theEPPQuicSession
-
EPPQuicSession
public EPPQuicSession(java.lang.String aUrl) throws EPPCommandExceptionConstruct anEPPQuicSessioninstance that points to the given URL. An example ishttps://localhost:1700/.- Parameters:
aUrl- URL to connect to- Throws:
EPPCommandException- Error initializing the session
-
EPPQuicSession
public EPPQuicSession(java.lang.String aUrl, EPPSSLContext aSSLContext) throws EPPCommandExceptionConstruct anEPPQuicSessioninstance that points to the given URL and anEPPSSLContext. An example iseoq://test.vgrs.com:1700/.- Parameters:
aUrl- URL to connect toaSSLContext- Optional specific SSL context to use. Set tonullif undefined.- Throws:
EPPCommandException- Error initializing the session
-
EPPQuicSession
public EPPQuicSession(java.lang.String aHostName, int aPortNumber) throws EPPCommandExceptionConstruct anEPPQuicSessioninstance that dynamically creates the server URL to connect to based on the host name and port number. The host name "localhost" and port number 1700, will result in the URL "eoq://localhost:1700".- Parameters:
aHostName- Host name or IP address of serveraPortNumber- Server port number- Throws:
EPPCommandException- Error initializing the session
-
EPPQuicSession
public EPPQuicSession(java.lang.String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPCommandExceptionConstruct anEPPQuicSessioninstance that dynamically creates the server URL to connect to based on the host name and port number, with anSSLContext. The host name "localhost" and port number 1700, will result in the URL "eoq://localhost:1700".- Parameters:
aHostName- Host name or IP address of serveraPortNumber- Server port numberaSSLContext- Optional specific SSL context to use. Set tonullif undefined.- Throws:
EPPCommandException- Error initializing the session
-
-
Method Detail
-
init
public void init() throws EPPCommandExceptionHelper method called by constructor to perform any initialization required for theEPPQuicSessionclass.- Overrides:
initin classEPPSession- Throws:
EPPCommandException- if something goes wrong
-
getUrl
public java.lang.String getUrl()
Gets the server URL to connect to.- Returns:
- Gets the server URL to connection to if set;
nullotherwise.
-
setUrl
public void setUrl(java.lang.String aUrl)
Sets the server URL to connect to.- Parameters:
aUrl- Server URL to
-
-