public final class RqSocket extends RqWrap
The class is immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
InetAddress |
getLocalAddress()
Returns IP address from the X-Takes-LocalAddress header.
|
int |
getLocalPort()
Returns port from the X-Takes-LocalPort header.
|
InetAddress |
getRemoteAddress()
Returns IP address from the X-Takes-RemoteAddress header.
|
int |
getRemotePort()
Returns port from the X-Takes-RemotePort header.
|
public RqSocket(Request req)
req
- Original requestpublic InetAddress getLocalAddress() throws IOException
IOException
- If failspublic InetAddress getRemoteAddress() throws IOException
IOException
- If failspublic int getLocalPort() throws IOException
IOException
- If failspublic int getRemotePort() throws IOException
IOException
- If failsCopyright © 2015–2016 Take. All rights reserved.