public class StunMessageFactory extends Object
| Constructor and Description |
|---|
StunMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
static StunResponse |
createBindingResponse(StunRequest request,
TransportAddress mappedAddress)
Creates a BindingResponse in a RFC5389 compliant manner containing a
single XOR-MAPPED-ADDRESS attribute
|
public static StunResponse createBindingResponse(StunRequest request, TransportAddress mappedAddress) throws IllegalArgumentException
request - the request that created the transaction that this response
will belong to.mappedAddress - the address to assign the mappedAddressAttributeIllegalArgumentException - if there was something wrong with the way we are trying to
create the response.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.