|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.stun.stack.transaction.StunClientTransactionImpl
public class StunClientTransactionImpl
Implementation of a STUN client transaction.
| Constructor Summary | |
|---|---|
StunClientTransactionImpl(StunMessage request,
List<StunTransactionListener> transactionListeners,
InetSocketAddress remoteAddress)
Creates a new STUN client transaction. |
|
StunClientTransactionImpl(StunMessage request,
StunTransactionListener transactionListener,
InetSocketAddress remoteAddress)
Creates a new STUN client transaction. |
|
| Method Summary | |
|---|---|
void |
addListener(StunTransactionListener listener)
Adds a listener to the transaction. |
InetSocketAddress |
getIntendedDestination()
Gets the destination host the transaction was intended for. |
StunMessage |
getRequest()
Accessor for the request that started the transaction. |
long |
getTransactionTime()
Accessor for the total transaction time for the transaction. |
StunMessage |
visitAllocateErrorResponse(AllocateErrorResponse response)
Visits a response for a failed Allocate Request. |
StunMessage |
visitAllocateRequest(AllocateRequest request)
Visits the TURN usage allocate request message. |
StunMessage |
visitAllocateSuccessResponse(AllocateSuccessResponse response)
Visits a response for a successful Allocate Request. |
StunMessage |
visitBindingErrorResponse(BindingErrorResponse response)
Visits a binding error response. |
StunMessage |
visitBindingRequest(BindingRequest binding)
Visits a binding message. |
StunMessage |
visitBindingSuccessResponse(BindingSuccessResponse response)
Visits a binding success response. |
StunMessage |
visitCanceledMessage(CanceledStunMessage message)
Visits a STUN message indicating the STUN transaction was canceled. |
StunMessage |
visitConnectErrorMesssage(ConnectErrorStunMessage message)
Visits a STUN "message" indicating there was a connection error, such as an ICMP error or a failure to create a TCP connection. |
StunMessage |
visitConnectionStatusIndication(ConnectionStatusIndication indication)
Visits a connection status indication message informing clients of the connection status of remote hosts. |
StunMessage |
visitConnectRequest(ConnectRequest request)
Visits a connection request from a client. |
StunMessage |
visitDataIndication(DataIndication data)
|
StunMessage |
visitNullMessage(NullStunMessage message)
Visits the absence of a message. |
StunMessage |
visitSendIndication(SendIndication request)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StunClientTransactionImpl(StunMessage request,
List<StunTransactionListener> transactionListeners,
InetSocketAddress remoteAddress)
request - The request starting the transaction.transactionListeners - The listeners for transaction events.remoteAddress - The remote address for the transaction.
public StunClientTransactionImpl(StunMessage request,
StunTransactionListener transactionListener,
InetSocketAddress remoteAddress)
request - The request starting the transaction.transactionListener - The listener for transaction events.remoteAddress - The remote address for the transaction.| Method Detail |
|---|
public void addListener(StunTransactionListener listener)
StunClientTransaction
addListener in interface StunClientTransaction<StunMessage>listener - The listener to add.public StunMessage getRequest()
StunClientTransaction
getRequest in interface StunClientTransaction<StunMessage>public long getTransactionTime()
StunClientTransaction
getTransactionTime in interface StunClientTransaction<StunMessage>public InetSocketAddress getIntendedDestination()
StunClientTransaction
getIntendedDestination in interface StunClientTransaction<StunMessage>public StunMessage visitBindingSuccessResponse(BindingSuccessResponse response)
StunMessageVisitor
visitBindingSuccessResponse in interface StunMessageVisitor<StunMessage>response - The binding success response.
public StunMessage visitBindingErrorResponse(BindingErrorResponse response)
StunMessageVisitor
visitBindingErrorResponse in interface StunMessageVisitor<StunMessage>response - Binding error response.
public StunMessage visitConnectErrorMesssage(ConnectErrorStunMessage message)
StunMessageVisitor
visitConnectErrorMesssage in interface StunMessageVisitor<StunMessage>message - The connection error message.
public StunMessage visitBindingRequest(BindingRequest binding)
StunMessageVisitor
visitBindingRequest in interface StunMessageVisitor<StunMessage>binding - The binding message.
public StunMessage visitAllocateRequest(AllocateRequest request)
StunMessageVisitor
visitAllocateRequest in interface StunMessageVisitor<StunMessage>request - The TURN usage allocate request.
public StunMessage visitDataIndication(DataIndication data)
visitDataIndication in interface StunMessageVisitor<StunMessage>public StunMessage visitSendIndication(SendIndication request)
visitSendIndication in interface StunMessageVisitor<StunMessage>public StunMessage visitAllocateSuccessResponse(AllocateSuccessResponse response)
StunMessageVisitor
visitAllocateSuccessResponse in interface StunMessageVisitor<StunMessage>response - The response to a successful Allocate Request.
public StunMessage visitAllocateErrorResponse(AllocateErrorResponse response)
StunMessageVisitor
visitAllocateErrorResponse in interface StunMessageVisitor<StunMessage>response - The response to a failed Allocate Request.
public StunMessage visitConnectRequest(ConnectRequest request)
StunMessageVisitor
visitConnectRequest in interface StunMessageVisitor<StunMessage>request - The connect request.
public StunMessage visitConnectionStatusIndication(ConnectionStatusIndication indication)
StunMessageVisitor
visitConnectionStatusIndication in interface StunMessageVisitor<StunMessage>indication - The connection status indication message.
public StunMessage visitNullMessage(NullStunMessage message)
StunMessageVisitor
visitNullMessage in interface StunMessageVisitor<StunMessage>message - The message to visit.
public StunMessage visitCanceledMessage(CanceledStunMessage message)
StunMessageVisitor
visitCanceledMessage in interface StunMessageVisitor<StunMessage>message - The canceled message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||