Package | Description |
---|---|
org.ice4j | |
org.ice4j.ice.harvest | |
org.ice4j.message | |
org.ice4j.socket | |
org.ice4j.stack |
Modifier and Type | Method and Description |
---|---|
Response |
StunResponseEvent.getResponse()
Returns the
Response that has just arrived and that caused this
event. |
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 |
---|---|
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 void |
GoogleTurnCandidateHarvest.createCandidates(Response response)
Creates new Candidates determined by a specific STUN
Response.
|
protected void |
TurnCandidateHarvest.createCandidates(Response response)
Creates new Candidates determined by a specific STUN
Response.
|
protected void |
StunCandidateHarvest.createCandidates(Response response)
Creates new Candidates determined by a specific STUN
Response.
|
private void |
GoogleTurnCandidateHarvest.createRelayedCandidate(Response response)
Creates a RelayedCandidate using the
XOR-RELAYED-ADDRESS attribute in a specific STUN
Response for the actual TransportAddress of the new
candidate.
|
private void |
TurnCandidateHarvest.createRelayedCandidate(Response response)
Creates a RelayedCandidate using the
XOR-RELAYED-ADDRESS attribute in a specific STUN
Response for the actual TransportAddress of the new
candidate.
|
protected void |
StunCandidateHarvest.createServerReflexiveCandidate(Response response)
Creates a ServerReflexiveCandidate using
StunCandidateHarvest.hostCandidate
as its base and the XOR-MAPPED-ADDRESS attribute in
response for the actual TransportAddress of the new
candidate. |
protected TransportAddress |
StunCandidateHarvest.getMappedAddress(Response response)
Gets the TransportAddress specified in the XOR-MAPPED-ADDRESS
attribute of a specific Response.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Response |
MessageFactory.create3489BindingResponse(TransportAddress mappedAddress,
TransportAddress sourceAddress,
TransportAddress changedAddress)
Creates a BindingResponse in a 3489 compliant manner, assigning the
specified values to mandatory headers.
|
static Response |
MessageFactory.createAllocationErrorResponse(char errorCode)
Creates a allocation error response according to the specified error
code.
|
static Response |
MessageFactory.createAllocationErrorResponse(char errorCode,
String reasonPhrase)
Creates a allocation error response according to the specified error
code.
|
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.createBindingErrorResponse(char errorCode)
Creates a binding error response according to the specified error code.
|
static Response |
MessageFactory.createBindingErrorResponse(char errorCode,
String reasonPhrase)
Creates a binding error response with an ERROR-CODE attribute.
|
static Response |
MessageFactory.createBindingErrorResponse(char errorCode,
String reasonPhrase,
char[] unknownAttributes)
Creates a binding error response according to the specified error code
and unknown attributes.
|
static Response |
MessageFactory.createBindingErrorResponseUnknownAttributes(char[] unknownAttributes)
Creates a binding error response with UNKNOWN_ATTRIBUTES error code and
the specified unknown attributes.
|
static Response |
MessageFactory.createBindingErrorResponseUnknownAttributes(String reasonPhrase,
char[] unknownAttributes)
Creates a binding error response with UNKNOWN_ATTRIBUTES error code and
the specified unknown attributes and reason phrase.
|
static Response |
MessageFactory.createBindingResponse(Request request,
TransportAddress mappedAddress)
Creates a BindingResponse in a 5389 compliant manner containing a single
XOR-MAPPED-ADDRESS attribute
|
static Response |
MessageFactory.createChannelBindErrorResponse(char errorCode)
Creates a Channel Bind Error Response with given error code.
|
static Response |
MessageFactory.createChannelBindErrorResponse(char errorCode,
String reasonPhrase)
Creates a Channel Bind Error Response with given error code
and reasonPhrase.
|
static Response |
MessageFactory.createChannelBindResponse()
Creates a Channel Bind Success Response.
|
static Response |
MessageFactory.createConnectErrorResponse(char errorCode)
Creates a Connect error response according to the specified error code.
|
static Response |
MessageFactory.createConnectErrorResponse(char errorCode,
String reasonPhrase)
Creates a Connect error response according to the specified error code.
|
static Response |
MessageFactory.createConnectionBindErrorResponse(char errorCode)
Creates a ConnectionBind error response according to the specified error
code.
|
static Response |
MessageFactory.createConnectionBindErrorResponse(char errorCode,
String reasonPhrase)
Creates a ConnectionBind error response according to the specified error
code.
|
static Response |
MessageFactory.createConnectionBindResponse()
Creates a ConnectionBind Response in a 6062 compliant manner.
|
static Response |
MessageFactory.createConnectResponse(int connectionIdValue)
Creates a Connect Response in a 6062 compliant manner containing a single
CONNECTION-ID-ATTRIBUTE attribute
|
static Response |
MessageFactory.createCreatePermissionErrorResponse(char errorCode)
Creates a create permission error response.
|
static Response |
MessageFactory.createCreatePermissionResponse()
Creates a create permission success response.
|
static Response |
MessageFactory.createPermissionErrorResponse(char errorCode,
String reasonPhrase)
Creates a create permission error response.
|
static Response |
MessageFactory.createRefreshErrorResponse(char errorCode)
Creates a refresh error response
|
static Response |
MessageFactory.createRefreshErrorResponse(char errorCode,
String reasonPhrase)
Creates a refresh error response.
|
static Response |
MessageFactory.createRefreshResponse(int lifetime)
Creates a refresh success response with given lifetime.
|
static Response |
MessageFactory.createSharedSecretErrorResponse()
Create a shared secret error response.
|
static Response |
MessageFactory.createSharedSecretResponse()
Create a shared secret response.
|
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.
|
Modifier and Type | Field and Description |
---|---|
private Response |
StunServerTransaction.response
The response sent in response to the request.
|
Modifier and Type | Method and Description |
---|---|
Response |
StunStack.createCorrespondingErrorResponse(char requestType,
char errorCode,
String reasonPhrase,
char... unknownAttributes)
Returns the Error Response object with specified errorCode and
reasonPhrase corresponding to input type.
|
protected Response |
StunServerTransaction.getResponse()
Returns the Response that the StunStack has sent
through this transaction or null if no Response has
been sent yet.
|
Modifier and Type | Method and Description |
---|---|
void |
StunStack.sendResponse(byte[] transactionID,
Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response message through the specified access point.
|
void |
StunServerTransaction.sendResponse(Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response through the
sendThrough
NetAccessPoint descriptor to the specified destination and changes
the transaction's state to retransmitting. |
Copyright © 2018. All rights reserved.