Package | Description |
---|---|
org.ice4j | |
org.ice4j.ice | |
org.ice4j.ice.harvest | |
org.ice4j.message | |
org.ice4j.security | |
org.ice4j.socket | |
org.ice4j.stack | |
org.ice4j.stunclient |
Modifier and Type | Field and Description |
---|---|
private Request |
StunResponseEvent.request
|
Modifier and Type | Method and Description |
---|---|
Request |
StunResponseEvent.getRequest()
|
Constructor and Description |
---|
StunResponseEvent(StunStack stunStack,
RawMessage rawMessage,
Response response,
Request request,
TransactionID transactionID)
Creates a new instance of this event.
|
Modifier and Type | Method and Description |
---|---|
private long |
ConnectivityCheckServer.extractPriority(Request request)
Returns the value of the
PriorityAttribute in request if
there is one or throws an IllegalArgumentException with the
corresponding message. |
Modifier and Type | Field and Description |
---|---|
private Request |
GoogleTurnCandidateHarvest.requestToStartResolvingCandidate
The Request created by the last call to
GoogleTurnCandidateHarvest.createRequestToStartResolvingCandidate() . |
private Request |
TurnCandidateHarvest.requestToStartResolvingCandidate
The Request created by the last call to
TurnCandidateHarvest.createRequestToStartResolvingCandidate() . |
Modifier and Type | Field and Description |
---|---|
private Map<TransactionID,Request> |
StunCandidateHarvest.requests
The STUN Requests which have been sent by this instance, have
not received a STUN Response yet and have not timed out.
|
Modifier and Type | Method and Description |
---|---|
protected Request |
TurnCandidateHarvest.createRequestToRetry(Request request)
Creates a new Request instance which is to be sent by this
StunCandidateHarvest in order to retry a specific
Request.
|
protected Request |
StunCandidateHarvest.createRequestToRetry(Request request)
Creates a new Request instance which is to be sent by this
StunCandidateHarvest in order to retry a specific
Request.
|
protected Request |
GoogleTurnCandidateHarvest.createRequestToStartResolvingCandidate()
Creates a new Request which is to be sent to
StunCandidateHarvester.stunServer in order to start resolving
StunCandidateHarvest.hostCandidate . |
protected Request |
TurnCandidateHarvest.createRequestToStartResolvingCandidate()
Creates a new Request which is to be sent to
StunCandidateHarvester.stunServer in order to start resolving
StunCandidateHarvest.hostCandidate . |
protected Request |
StunCandidateHarvest.createRequestToStartResolvingCandidate()
Creates a new Request which is to be sent to
StunCandidateHarvester.stunServer in order to start resolving
StunCandidateHarvest.hostCandidate . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
GoogleTurnCandidateHarvest.addShortTermCredentialAttributes(Request request)
Adds the Attributes to a specific Request which support
the STUN short-term credential mechanism if the mechanism in question is
utilized by this StunCandidateHarvest (i.e.
|
protected boolean |
StunCandidateHarvest.addShortTermCredentialAttributes(Request request)
Adds the Attributes to a specific Request which support
the STUN short-term credential mechanism if the mechanism in question is
utilized by this StunCandidateHarvest (i.e.
|
protected boolean |
GoogleTurnCandidateHarvest.completedResolvingCandidate(Request request,
Response response)
Completes the harvesting of Candidates for
StunCandidateHarvest.hostCandidate . |
protected boolean |
TurnCandidateHarvest.completedResolvingCandidate(Request request,
Response response)
Completes the harvesting of Candidates for
StunCandidateHarvest.hostCandidate . |
protected boolean |
StunCandidateHarvest.completedResolvingCandidate(Request request,
Response response)
Completes the harvesting of Candidates for
StunCandidateHarvest.hostCandidate . |
protected Request |
TurnCandidateHarvest.createRequestToRetry(Request request)
Creates a new Request instance which is to be sent by this
StunCandidateHarvest in order to retry a specific
Request.
|
protected Request |
StunCandidateHarvest.createRequestToRetry(Request request)
Creates a new Request instance which is to be sent by this
StunCandidateHarvest in order to retry a specific
Request.
|
private boolean |
StunCandidateHarvest.processChallenge(byte[] realm,
byte[] nonce,
Request request,
TransactionID requestTransactionID)
Notifies this StunCandidateHarvest that a specific STUN
Request has been challenged for a long-term credential (as the
short-term credential mechanism does not utilize challenging) in a
specific realm and with a specific nonce.
|
private boolean |
StunCandidateHarvest.processChallenge(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific STUN
Response has been received and it challenges a specific STUN
Request for a long-term credential (as the short-term credential
mechanism does not utilize challenging).
|
protected boolean |
GoogleTurnCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
protected boolean |
TurnCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
protected boolean |
StunCandidateHarvest.processErrorOrFailure(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific
Request has either received an error Response or has
failed to receive any Response.
|
private boolean |
StunCandidateHarvest.processStaleNonce(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"438 Stale Nonce" to a specific STUN Request.
|
protected void |
GoogleTurnCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
protected void |
TurnCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
protected void |
StunCandidateHarvest.processSuccess(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN success Response to a specific STUN
Request.
|
private boolean |
StunCandidateHarvest.processUnauthorized(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"401 Unauthorized" to a specific STUN Request.
|
byte[] |
TurnCandidateHarvest.sendRequest(RelayedCandidateDatagramSocket relayedCandidateDatagramSocket,
Request request)
Sends a specific Request on behalf of a specific
RelayedCandidateDatagramSocket to the TURN server associated
with this TurnCandidateHarvest.
|
protected TransactionID |
StunCandidateHarvest.sendRequest(Request request,
boolean firstRequest,
TransactionID transactionID)
Sends a specific Request to the STUN server associated with this
StunCandidateHarvest.
|
Modifier and Type | Method and Description |
---|---|
static Request |
MessageFactory.createAllocateRequest()
Create an allocate request without attribute.
|
static Request |
MessageFactory.createAllocateRequest(byte protocol,
boolean rFlag)
Create an allocate request to allocate an even port.
|
static Request |
MessageFactory.createBindingRequest()
Creates a default binding request.
|
static Request |
MessageFactory.createBindingRequest(long priority)
Creates a default binding request.
|
static Request |
MessageFactory.createBindingRequest(long priority,
boolean controlling,
long tieBreaker)
Creates a default binding request.
|
static Request |
MessageFactory.createChannelBindRequest(char channelNumber,
TransportAddress peerAddress,
byte[] tranID)
Create a ChannelBind request.
|
static Request |
MessageFactory.createConnectionBindRequest(int connectionIdValue)
Creates a ConnectionBindRequest in a 6062 compliant manner containing
only CONECTION-ID-ATTRIBUTE attribute.
|
static Request |
MessageFactory.createConnectRequest(TransportAddress peerAddress,
byte[] transactionId)
Creates a ConnectRequest in a 6062 compliant manner containing only
XOR-PEER-ADDRESS attribute.
|
static Request |
MessageFactory.createConnectRequest(TransportAddress peerAddress,
Request request)
Creates a ConnectRequest in a 6062 compliant manner containing only
XOR-PEER-ADDRESS attribute |
static Request |
MessageFactory.createCreatePermissionRequest(TransportAddress peerAddress,
byte[] transactionID)
Creates a new TURN CreatePermission Request with a specific
value for its XOR-PEER-ADDRESS attribute.
|
static Request |
MessageFactory.createGoogleAllocateRequest(String username)
Create an allocate request for a Google TURN relay (old TURN protocol
modified).
|
static Request |
MessageFactory.createRefreshRequest()
Creates a new TURN Refresh Request without any optional
attributes such as LIFETIME.
|
static Request |
MessageFactory.createRefreshRequest(int lifetime)
Create a refresh request.
|
static Request |
MessageFactory.createSendRequest(String username,
TransportAddress peerAddress,
byte[] data)
Create a old Send Request.
|
static Request |
MessageFactory.createSharedSecretRequest()
Create a shared secret request.
|
Modifier and Type | Method and Description |
---|---|
static void |
MessageFactory.addLongTermCredentialAttributes(Request request,
byte[] username,
byte[] realm,
byte[] nonce)
Adds the Attributes to a specific Request which support
the STUN long-term credential mechanism.
|
static Response |
MessageFactory.createAllocationResponse(Request request,
TransportAddress mappedAddress,
TransportAddress relayedAddress,
byte[] token,
int lifetime)
Creates a AllocationResponse in a 5389 compliant manner containing at most 4 attributes
XOR-RELAYED-ADDRESS attribute LIFETIME attribute RESERVATION-TOKEN attribute XOR-MAPPED-ADDRESS attribute |
static Response |
MessageFactory.createAllocationResponse(Request request,
TransportAddress mappedAddress,
TransportAddress relayedAddress,
int lifetime)
Creates a AllocationResponse in a 5389 compliant manner containing at
most 4 attributes
XOR-RELAYED-ADDRESS attribute LIFETIME attribute XOR-MAPPED-ADDRESS attribute |
static Response |
MessageFactory.createBindingResponse(Request request,
TransportAddress mappedAddress)
Creates a BindingResponse in a 5389 compliant manner containing a single
XOR-MAPPED-ADDRESS attribute
|
static Request |
MessageFactory.createConnectRequest(TransportAddress peerAddress,
Request request)
Creates a ConnectRequest in a 6062 compliant manner containing only
XOR-PEER-ADDRESS attribute |
Modifier and Type | Method and Description |
---|---|
void |
LongTermCredentialSession.addAttributes(Request request)
Adds the Attributes to a specific Request which support
the long-term credential mechanism using the LongTermCredential
associated with this instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GoogleRelayedCandidateDelegate.processErrorOrFailure(Response response,
Request request)
Notifies this GoogleRelayedCandidateDatagramSocket that a
specific Request it has sent has either failed or received a
STUN error Response.
|
boolean |
RelayedCandidateDatagramSocket.processErrorOrFailure(Response response,
Request request)
Notifies this RelayedCandidateDatagramSocket that a specific
Request it has sent has either failed or received a STUN error
Response.
|
void |
GoogleRelayedCandidateSocket.processSuccess(Response response,
Request request)
Notifies this GoogleRelayedCandidateSocket that a
specific Request it has sent has received a STUN success
Response.
|
void |
GoogleRelayedCandidateDelegate.processSuccess(Response response,
Request request)
Notifies this GoogleRelayedCandidateDatagramSocket that a
specific Request it has sent has received a STUN success
Response.
|
void |
RelayedCandidateDatagramSocket.processSuccess(Response response,
Request request)
Notifies this RelayedCandidateDatagramSocket that a specific
Request it has sent has received a STUN success
Response.
|
void |
GoogleRelayedCandidateDatagramSocket.processSuccess(Response response,
Request request)
Notifies this GoogleRelayedCandidateDatagramSocket that a
specific Request it has sent has received a STUN success
Response.
|
private void |
RelayedCandidateDatagramSocket.setChannelBound(Request request,
boolean bound)
Sets the bound property of a Channel the installation
of which has been attempted by sending a specific Request.
|
private void |
RelayedCandidateDatagramSocket.setChannelNumberIsConfirmed(Request request,
boolean channelNumberIsConfirmed)
Sets the channelNumberIsConfirmed property of a Channel
which has attempted to allocate a specific channel number by sending a
specific ChannelBind Request.
|
Modifier and Type | Field and Description |
---|---|
private Request |
StunClientTransaction.request
The request that we are retransmitting.
|
Modifier and Type | Method and Description |
---|---|
(package private) Request |
StunClientTransaction.getRequest()
Returns the request that was the reason for creating this transaction.
|
Modifier and Type | Method and Description |
---|---|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
DatagramSocket sendThrough,
ResponseCollector collector)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
TransactionID |
StunStack.sendRequest(Request request,
TransportAddress sendTo,
TransportAddress sendThrough,
ResponseCollector collector,
TransactionID transactionID,
int originalWaitInterval,
int maxWaitInterval,
int maxRetransmissions)
Sends the specified request through the specified access point, and
registers the specified ResponseCollector for later notification.
|
Constructor and Description |
---|
StunClientTransaction(StunStack stackCallback,
Request request,
TransportAddress requestDestination,
TransportAddress localAddress,
ResponseCollector responseCollector)
Creates a client transaction.
|
StunClientTransaction(StunStack stackCallback,
Request request,
TransportAddress requestDestination,
TransportAddress localAddress,
ResponseCollector responseCollector,
TransactionID transactionID)
Creates a client transaction.
|
Modifier and Type | Method and Description |
---|---|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out.
|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress,
TransactionID tranID)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out with given
transactionID.
|
Copyright © 2018. All rights reserved.