Package com.verisign.epp.interfaces
Class EPPSession
java.lang.Object
com.verisign.epp.interfaces.EPPSession
- Direct Known Subclasses:
EPPHttpSession,EPPPooledGenericSession,EPPQuicSession
EPPSession manages a session with an EPP Server. An initialized
instance of EPPSession is required for using any of the EPP interface
classes (i.e. EPPDomain). EPPSession can invoke the following
EPP operations:- Login - Login to an EPP Server
- Logout - Logout from an EPP Server
- Hello - Request Greeting from the EPP Server
- Poll - Discover and retrieve client service messages
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringClient identifier to use in login.protected EPPCodecEPP Codec used to encode and decode EPP messagesprotected EPPClientConSession connectionprotected Vector<EPPService> EPP extension servicesprotected InputStreamSession input streamprotected StringOverride EPP languageprotected EPPLoginAdapterLogin adapter used by thelogin().protected EPPMessageMessage being sentprotected intWhat mode should the EPPSession process command/responses.static final intAsynchronous mode contant in processing commands/responses, where for theprocessDocument(EPPCommand)will send the command and will not wait for the response.static final intSynchronous mode constant in processing commands/responses, where for each command sent theEPPSessionwill immediately read for the response.protected StringMessage identifier associated with aEPPPollCmd.OP_ACKpoll command.protected StringNew password to usestatic final StringPoll operation type indicating that the client has received a message and that the server can remove the message.static final StringPoll operation type indicating that the client is requesting information from the server.protected OutputStreamSession output streamprotected StringClient passwordprotected StringPoll Operation Commandprotected EPPResponseEPP response associated with last EPP commandprotected byte[]EPP response packet associated with the last EPP commandprotected static EPPSendReceiveLoggerLog the packet logging and receiver.protected Vector<EPPService> EPP servicesprotected StringClient transaction identifierprotected StringOverride EPP versionprotected EPPXMLStreamUsed to read and write XML packets from/to streams. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct and initialize a new instance of EPPSession using the host name and port number defined inEPPEnv.EPPSession(String aHostName, int aPortNumber) Construct and initialize a new instance ofEPPSessionwith a specific host and port.EPPSession(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) Construct and initialize a new instance ofEPPSessionwith a specific host and port.EPPSession(String aHostName, int aPortNumber, String aClientHostName) Construct and initialize a new instance ofEPPSessionwith a specific server host, server port, client host name, and client port.EPPSession(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) Construct and initialize a new instance ofEPPSessionwith a specific server host, server port, client host name, and client port. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtensionService(EPPService aService) Adds a specific extension service to the list of extensions services.voidaddService(EPPService aService) Adds a specific object mapping service to the list of object mapping services.voidCloses the connection with the server.voidEnds a session by logging out from the server and closing the connection with the server.Gets the client connection used for theEPPSession.Gets the client identifier/name used ininitSession.protected EPPClientConGets the client connection.Gets the specific set of extension services to use in the session.Gets the session input stream.Gets theEPPLoginAdapterset in theEPPSession.intgetMode()Gets the command/response processing mode, which should be eitherMODE_SYNCorMODE_ASYNC.getMsgID()Gets the poll Message Id.Gets the new client password used ininitSession.Gets the session output stream.Gets the client password used ininitSession.Gets the poll operation, which should be eitherOP_REQorOP_ACKGets response associated with the last command.Gets the specific set of object mapping services to use in the session.Gets an optional client transaction identifier used when sending an EPP command (i.e.Gets the EPP version used ininitSession.hello()Sends a Hello Command to the EPP Server.protected voidinit()Initializes anEPPSessionusing the defaultEPPEnvproperties, which will do the following:
Gets concrete connection factory Makes connection to EPP Server Initialize the streams for XML processing
EPPSession.initSessionneeds to be called to fully initialize a session with the EPP Server.protected voidinit(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) Initializes anEPPSessionto connect to a specific host and port, which will do the following:
Gets concrete connection factory Makes connection to EPP Server Initialize the streams for XML processing
initSession()needs to be called to fully initialize a session with the EPP Server.protected voidinit(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) Initializes anEPPSessionto connect to a specific server host, server port from a specific client host name/IP address.protected voidinitialize the login adapter to use.voidInitialize an authenticated session with the EPP Server.
The required attributes have been set with the following methods:
setClientID- Sets the client idenfifier/user namesetPassword- Sets the password
The optional attributes have been set with the following:
setNewPassword- Changes the passwordsetVersion- Override the default EPP version.voidinitSession(EPPGreeting myGreeting) Initialize an authenticated session with the EPP Server.
The required attributes have been set with the following methods:
setClientID- Sets the client idenfifier/user namesetPassword- Sets the password
The optional attributes have been set with the following:
setNewPassword- Changes the passwordsetVersion- Override the default EPP version.protected voidInitializes the input stream, output stream, and XML stream from the previously initialized client connection (connection).booleanisModeSupported(int aMode) Does the session support the specified modeMODE_SYNCorMODE_ASYNC? A derived class ofEPPSessioncould support a subset of the modes, so this method is provide to provide the client with the ability to check whether a mode is supported.protected voidlogin()This methods does a session login.protected voidlogin(EPPGreeting myGreeting) This methods does a session login.protected voidlogout()logout from the session.processDocument(EPPCommand aCommand) Process anEPPCommandinstance by writing the command to the session output stream and reading anEPPResponseinstance from the sessin input stream.processDocument(EPPCommand aCommand, Class aExpectedResponse) Process anEPPCommandinstance by writing the command to the session output stream and reading anEPPResponseinstance from the sessin input stream and validate that theEPPResponseis of the specified type.This methods processes the greeting received whenever a session is established.Reads a response from the server.Gets an validated EPP DOM Document from the session input stream.voidsendDocument(Document newDoc, EPPMessage aMessage) Sends an EPP DOM Document to the session output stream.voidsendMessage(EPPMessage aMessage) Sends an EPP Message (command, hello, etc.) to the session output stream.voidsendPacket(byte[] aPacket) Sends a pre-formatted packet to theEPPSessionoutput stream as an EPP packet with the 4 byte header.sendPoll()This method creates an instance ofEPPPollCmdand sets the given attributes and invokes the send method associated with the command.voidsetClientID(String newClientID) Sets the client identifier/name used ininitSession.voidsetExtensions(Vector<String> aProtocolExtensions, Vector<String> aCommandResponseExtensions) Set the Extension Services to use with this session by EPP XML namespace URIs.voidsetExtensionServices(Vector<EPPService> aExtensionServices) Sets the list of extension services, where ifnullthe default set of extension services will be used from theEPPFactory.voidsetInputStream(InputStream newInput) Sets the input stream for the session.setLang()Gets the language of "us" used byinitSession.voidOverrides the default language of "us" used byinitSession.voidsetLoginAdapter(EPPLoginAdapter aLoginAdapter) Sets theEPPLoginAdapter.intsetMode(int aMode) Sets the command/response processing mode to eitherMODE_SYNCorMODE_ASYNC.voidSets the poll Message Id.voidsetNewPassword(String newPassword) Sets the new client password used ininitSession.voidsetOutputStream(OutputStream newOutput) Sets the output stream for the session.voidsetPassword(String newPassword) Sets the client password used ininitSession.voidSets the poll operation to eitherOP_REQorOP_ACKvoidsetServices(String[] aServiceNSs) Set the services to use with this session by EPP XML namespace URIs.voidsetServices(Vector<EPPService> aService) Sets the object mapping services.voidsetTransId(String newTransId) Sets an optional client transaction identifier used when sending an EPP command (i.e.voidsetVersion(String newVersion) Overrides the default EPP version used ininitSession.voidvalidateClientTransId(EPPCommand myCommand, EPPResponse response) Validates that the response client transaction identifier matches the command's client transaction identifier.
-
Field Details
-
OP_REQ
Poll operation type indicating that the client is requesting information from the server.- See Also:
-
OP_ACK
Poll operation type indicating that the client has received a message and that the server can remove the message.- See Also:
-
MODE_SYNC
public static final int MODE_SYNCSynchronous mode constant in processing commands/responses, where for each command sent theEPPSessionwill immediately read for the response. This is the default mode, but can be overridden with thesetMode(int)method.- See Also:
-
MODE_ASYNC
public static final int MODE_ASYNCAsynchronous mode contant in processing commands/responses, where for theprocessDocument(EPPCommand)will send the command and will not wait for the response. The client must callreadResponse()to read the response. The mode can be set with thesetMode(int)method.- See Also:
-
codec
EPP Codec used to encode and decode EPP messages -
transId
Client transaction identifier -
version
Override EPP version -
language
Override EPP language -
clientId
Client identifier to use in login. -
password
Client password -
newPassword
New password to use -
response
EPP response associated with last EPP command -
responsePacket
protected byte[] responsePacketEPP response packet associated with the last EPP command -
services
EPP services -
extensionServices
EPP extension services -
connection
Session connection -
inputStream
Session input stream -
outputStream
Session output stream -
xmlStream
Used to read and write XML packets from/to streams. -
pollOp
Poll Operation Command -
message
Message being sent -
msgID
Message identifier associated with aEPPPollCmd.OP_ACKpoll command. -
mode
protected int modeWhat mode should the EPPSession process command/responses. The mode will default toMODE_SYNCwhich will send a command an immediately wait for the response. -
loginAdapter
Login adapter used by thelogin(). -
sendReceiveLogger
Log the packet logging and receiver.
-
-
Constructor Details
-
EPPSession
Construct and initialize a new instance of EPPSession using the host name and port number defined inEPPEnv.- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
EPPSession
Construct and initialize a new instance ofEPPSessionwith a specific host and port.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect to- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
EPPSession
public EPPSession(String aHostName, int aPortNumber, String aClientHostName) throws EPPCommandException Construct and initialize a new instance ofEPPSessionwith a specific server host, server port, client host name, and client port.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHostName- Host name or IP address to connect from- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
EPPSession
public EPPSession(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPCommandException Construct and initialize a new instance ofEPPSessionwith a specific host and port.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
EPPSession
public EPPSession(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) throws EPPCommandException Construct and initialize a new instance ofEPPSessionwith a specific server host, server port, client host name, and client port.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHostName- Host name or IP address to connect fromaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
-
Method Details
-
init
Initializes anEPPSessionusing the defaultEPPEnvproperties, which will do the following:
- Gets concrete connection factory
- Makes connection to EPP Server
- Initialize the streams for XML processing
EPPSession.initSessionneeds to be called to fully initialize a session with the EPP Server.- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
init
protected void init(String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPCommandException Initializes anEPPSessionto connect to a specific host and port, which will do the following:
- Gets concrete connection factory
- Makes connection to EPP Server
- Initialize the streams for XML processing
initSession()needs to be called to fully initialize a session with the EPP Server.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
init
protected void init(String aHostName, int aPortNumber, String aClientHostName, EPPSSLContext aSSLContext) throws EPPCommandException Initializes anEPPSessionto connect to a specific server host, server port from a specific client host name/IP address. which will do the following:
- Gets concrete connection factory
- Makes connection to EPP Server
- Initialize the streams for XML processing
EPPSession.initSessionneeds to be called to fully initialize a session with the EPP Server.- Parameters:
aHostName- Host name or IP address of host to connect toaPortNumber- Port number to connect toaClientHostName- Host name or IP address to connect fromaSSLContext- Optional specific SSL context to use- Throws:
EPPCommandException- Thrown if there's an error initializing theEPPSession
-
getConnection
Gets the client connection. The connection needs to be initialized by calling theinitializemethods of the returned connection.- Returns:
- Client connection
- Throws:
EPPCommandException- Error creating the connection
-
initStreams
Initializes the input stream, output stream, and XML stream from the previously initialized client connection (connection).- Throws:
EPPCommandException- Error initializing streams
-
initLoginAdapter
protected void initLoginAdapter()initialize the login adapter to use. -
getLoginAdapter
Gets theEPPLoginAdapterset in theEPPSession.- Returns:
- Set
EPPLoginAdapterif defined;nullotherwise.
-
setLoginAdapter
Sets theEPPLoginAdapter. This must be set prior to callinginitSession().- Parameters:
aLoginAdapter-EPPLoginAdapterto use. Set tonullto not use a login adapter.
-
processGreeting
This methods processes the greeting received whenever a session is established.- Returns:
- the greeting
- Throws:
EPPCommandException- Error with greeting
-
login
This methods does a session login. The following steps are followed:
- receives a greeting and processes it.
- sends login
- processed login response
- Throws:
EPPCommandException- Error with login
-
login
This methods does a session login. The following steps are followed:
- receives a greeting and processes it.
- sends login
- processed login response
- Parameters:
myGreeting- Greeting that is used in determining the services to include in the login command- Throws:
EPPCommandException- Error with login
-
hello
Sends a Hello Command to the EPP Server. The EPP Greeting sent from the EPP Server will be returned.
- pre-condition - A connection has been established with the EPP Server
- post-condition - Error or the EPP Greeting sent by the EPP Server
- error condition - connection time out/ bad connection.
- Returns:
- Server greeting
- Throws:
EPPCommandException- Unexpected error information
-
sendPoll
This method creates an instance ofEPPPollCmdand sets the given attributes and invokes the send method associated with the command.- Returns:
- the response from the poll command
- Throws:
EPPCommandException- Error sending the poll command
-
logout
logout from the session.- Throws:
EPPCommandException- Error sending the logout command
-
validateClientTransId
public void validateClientTransId(EPPCommand myCommand, EPPResponse response) throws EPPCommandException Validates that the response client transaction identifier matches the command's client transaction identifier. Client transaction identifiers are optional, but if specified, need to be mirrored back in the response.- Parameters:
myCommand- Command sentresponse- Response received- Throws:
EPPCommandException- transaction ids don't match
-
recDocument
Gets an validated EPP DOM Document from the session input stream.- Returns:
- DOM
Documentinstance read from stream - Throws:
EPPCommandException- Error reading document from stream
-
sendMessage
Sends an EPP Message (command, hello, etc.) to the session output stream. UsereadResponse()orrecDocument()to read the response if any from the session.- Parameters:
aMessage- EPP Message to send to the session output stream- Throws:
EPPCommandException- Error encoding or sending EPP message to the session output stream
-
sendDocument
Sends an EPP DOM Document to the session output stream.- Parameters:
newDoc- DOMDocumentinstance to write to streamaMessage- Message associated withnewDocthat is used for packet logging logic. Set tonullif unavailable.- Throws:
EPPCommandException- Error writing document to stream
-
sendPacket
Sends a pre-formatted packet to theEPPSessionoutput stream as an EPP packet with the 4 byte header.- Parameters:
aPacket- Packet to send to theEPPSessionoutput stream- Throws:
EPPCommandException- Error writing packet to the stream
-
processDocument
Process anEPPCommandinstance by writing the command to the session output stream and reading anEPPResponseinstance from the sessin input stream.- Parameters:
aCommand- Command to write to output stream- Returns:
- Response associated with passed in command
- Throws:
EPPCommandException- error processing the command. This can include an error specified from the server or encountered while attempting to process the command. If the exception contains anEPPResponsethan it was a server specified error.
-
readResponse
Reads a response from the server. This method does no post-processing of the response, but simply reads the response from the connection, decodes it and returns the concreteEPPResponse. Theresponseattribute is set as a side-effect of callingreadResponseso thatgetResponse()can be called later.- Returns:
- Response from server
- Throws:
EPPCommandException- Error reading or decoding the server response
-
processDocument
public EPPResponse processDocument(EPPCommand aCommand, Class aExpectedResponse) throws EPPCommandException Process anEPPCommandinstance by writing the command to the session output stream and reading anEPPResponseinstance from the sessin input stream and validate that theEPPResponseis of the specified type.- Parameters:
aCommand- Command to write to output streamaExpectedResponse- Expected type ofEPPResponse. IfaExpectedResponseis non-nulland the response is not of the specified type, than anEPPCommandExceptionwill be thrown.- Returns:
- Response associated with passed in command if mode is
MODE_SYNC;nullotherwise. - Throws:
EPPCommandException- error processing the command. This can include an error specified from the server or encountered while attempting to process the command. If the exception contains anEPPResponsethan it was a server specified error.
-
endSession
Ends a session by logging out from the server and closing the connection with the server.- Throws:
EPPCommandException- Error ending session
-
endConnection
Closes the connection with the server.- Throws:
EPPCommandException- Error closing connection.
-
initSession
Initialize an authenticated session with the EPP Server.
The required attributes have been set with the following methods:
setClientID- Sets the client idenfifier/user namesetPassword- Sets the password
The optional attributes have been set with the following:
setNewPassword- Changes the passwordsetVersion- Override the default EPP version. A default setting is provided (i.e. 1.0).setLang- Override the default language of "us".setServices- Sets desired set of client EPP services by EPP XML Namespace. A default setting is automatically provided based on theEPP.MapFactoriesconfiguration settingsetExtensions- Sets desired set of client EPP services. This can be a subset of the EPP services loaded in the client. A default setting is automatically provided based on theEPP.ProtocolExtensionand theEPP.CmdRspExtensionsconfiguration settings.
- Throws:
EPPCommandException- Error initializing the session.
-
initSession
Initialize an authenticated session with the EPP Server.
The required attributes have been set with the following methods:
setClientID- Sets the client idenfifier/user namesetPassword- Sets the password
The optional attributes have been set with the following:
setNewPassword- Changes the passwordsetVersion- Override the default EPP version. A default setting is provided (i.e. 1.0).setLang- Override the default language of "us".setServices- Sets desired set of client EPP services by EPP XML Namespace. A default setting is automatically provided based on theEPP.MapFactoriesconfiguration settingsetExtensions- Sets desired set of client EPP services. This can be a subset of the EPP services loaded in the client. A default setting is automatically provided based on theEPP.ProtocolExtensionand theEPP.CmdRspExtensionsconfiguration settings.
- Parameters:
myGreeting- Greeting that is used in determining the services to include in the login command- Throws:
EPPCommandException- Error initializing the session.
-
getVersion
Gets the EPP version used ininitSession.- Returns:
- EPP version to use
-
setVersion
Overrides the default EPP version used ininitSession.- Parameters:
newVersion- EPP version to use
-
setLang
Gets the language of "us" used byinitSession.- Returns:
- Language following RFC3066 format
-
setLang
Overrides the default language of "us" used byinitSession.- Parameters:
newLanguage- Language following RFC3066 format
-
getTransId
Gets an optional client transaction identifier used when sending an EPP command (i.e. EPP <login> or EPP <logout>).- Returns:
- Client transaction identifier if defined;
nullotherwise.
-
setTransId
Sets an optional client transaction identifier used when sending an EPP command (i.e. EPP <login> or EPP <logout>). It is recommended to use a unique transaction identifier per command.- Parameters:
newTransId- Client transaction identifer
-
getResponse
Gets response associated with the last command. For example, this could be the response associated with the EPP <login> command sent ininitSession.- Returns:
- response if defined;
nullotherwise.
-
getInputStream
Gets the session input stream.- Returns:
- Session input stream if defined;
nullotherwise.
-
setInputStream
Sets the input stream for the session. A default input stream is created in theEPPSessionconstructor. It is recommended to use the default input stream.- Parameters:
newInput- Input stream to use in session.
-
getOutputStream
Gets the session output stream.- Returns:
- Session output stream
-
getClientCon
Gets the client connection used for theEPPSession.- Returns:
- Client connection if defined;
nullotherwise
-
setOutputStream
Sets the output stream for the session. A default output stream is created in theEPPSessionconstructor. It is recommended to use the default output stream.- Parameters:
newOutput- Output stream to use in session.
-
getClientID
Gets the client identifier/name used ininitSession.- Returns:
- Client identifier
-
setClientID
Sets the client identifier/name used ininitSession.- Parameters:
newClientID- Client identifier
-
getPassword
Gets the client password used ininitSession.- Returns:
- Client password
-
setPassword
Sets the client password used ininitSession.- Parameters:
newPassword- Client password
-
getNewPassword
Gets the new client password used ininitSession.- Returns:
- New client password
-
setNewPassword
Sets the new client password used ininitSession.- Parameters:
newPassword- New client password
-
getServices
Gets the specific set of object mapping services to use in the session. Ifnullall of the object mapping services loaded into theEPPFactorywill be used.- Returns:
- The specific set of object mapping services if defined;
nullotherwise to use the default object mapping services in theEPPFactory.
-
setServices
Sets the object mapping services. Set tonullto use the default object mappings in theEPPFactory.- Parameters:
aService- Set to specific set of object mapping services or set tonullto use the default from theEPPFactory.
-
addService
Adds a specific object mapping service to the list of object mapping services.- Parameters:
aService- Object mapping service to add to the list of services.
-
setServices
Set the services to use with this session by EPP XML namespace URIs. This must be called before callinginitSessionorlogin. The default setting is to use all of the services loaded inEPPFactory. This method allows a client to specify a subset of the services loaded in theEPPFactory, which is useful for synchronizing with the services supported by a specific server. For example, to initialize a session that will manage domains,newServicesNSwould be set tonew String[]{"urn:iana:xml:ns:domain-1.0"}. Only a subset of the services loaded in theEPPFactorycan be specified.- Parameters:
aServiceNSs- An array of EPP XML namespace URIs to use in sesssion- Throws:
EPPCommandException- Invalid namespace specified.
-
getExtensionServices
Gets the specific set of extension services to use in the session. Ifnullall of the object mapping services loaded into theEPPFactorywill be used.- Returns:
- The specific set of object mapping services if defined;
nullotherwise to use the default object mapping services in theEPPFactory.
-
setExtensionServices
Sets the list of extension services, where ifnullthe default set of extension services will be used from theEPPFactory.- Parameters:
aExtensionServices- Set to the list of extension services ornullto use the default from theEPPFactory.
-
addExtensionService
Adds a specific extension service to the list of extensions services. The service can either be a protocol extension or a command response extension.- Parameters:
aService- Extension service to add to the list of services.
-
setExtensions
public void setExtensions(Vector<String> aProtocolExtensions, Vector<String> aCommandResponseExtensions) throws EPPCommandException Set the Extension Services to use with this session by EPP XML namespace URIs. This must be called before callinginitSessionorlogin. The default setting is to use all of the services loaded inEPPFactory. This method allows a client to specify a subset of the extensionservices loaded in theEPPFactory, which is useful for synchronizing with the extensionservices supported by a specific server. Either of the parameter aProtocolExtenions or the aCommandResponseExtenisons can benullor both the parameters can benullin which case there are no extensions to be set.- Parameters:
aProtocolExtensions- XML namespace URIs to use in sessionaCommandResponseExtensions- XML namespace URIs to use in session- Throws:
EPPCommandException- Invalid namespace specified.
-
setPollOp
Sets the poll operation to eitherOP_REQorOP_ACK- Parameters:
aOp-OP_REQorOP_ACK.
-
getPollOp
Gets the poll operation, which should be eitherOP_REQorOP_ACK- Returns:
- Either
OP_REQorOP_ACK
-
getMsgID
Gets the poll Message Id.- Returns:
- Message Id if defined; null otherwise.
-
setMsgID
Sets the poll Message Id.- Parameters:
aMsgID- Message Id
-
getMode
public int getMode()Gets the command/response processing mode, which should be eitherMODE_SYNCorMODE_ASYNC.- Returns:
MODE_SYNCorMODE_ASYNC
-
setMode
public int setMode(int aMode) Sets the command/response processing mode to eitherMODE_SYNCorMODE_ASYNC.- Parameters:
aMode-MODE_SYNCorMODE_ASYNC- Returns:
- Previous mode
-
isModeSupported
public boolean isModeSupported(int aMode) Does the session support the specified modeMODE_SYNCorMODE_ASYNC? A derived class ofEPPSessioncould support a subset of the modes, so this method is provide to provide the client with the ability to check whether a mode is supported.- Parameters:
aMode-MODE_SYNCorMODE_ASYNC- Returns:
trueif supported;falseotherwise.
-