public final class SocketAddressBuffer extends Object
| Constructor and Description | 
|---|
SocketAddressBuffer()
Construct a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear both addresses in the buffer. 
 | 
SocketAddress | 
getDestinationAddress()
Get the destination address. 
 | 
<A extends SocketAddress> | 
getDestinationAddress(Class<A> type)
Get the destination address. 
 | 
SocketAddress | 
getSourceAddress()
Get the source address. 
 | 
<A extends SocketAddress> | 
getSourceAddress(Class<A> type)
Get the source address. 
 | 
void | 
setDestinationAddress(SocketAddress destinationAddress)
Set the destination address. 
 | 
void | 
setSourceAddress(SocketAddress sourceAddress)
Set the source address. 
 | 
public SocketAddress getSourceAddress()
null if not setpublic <A extends SocketAddress> A getSourceAddress(Class<A> type)
type - the address type to getnull if not setpublic void setSourceAddress(SocketAddress sourceAddress)
sourceAddress - the source address, or null to clearpublic SocketAddress getDestinationAddress()
null if not setpublic <A extends SocketAddress> A getDestinationAddress(Class<A> type)
type - the address type to getnull if not setpublic void setDestinationAddress(SocketAddress destinationAddress)
destinationAddress - the destination address, or null to clearpublic void clear()
Copyright © 2016 JBoss by Red Hat. All rights reserved.