public class AprSocket extends Object implements Runnable
| Modifier and Type | Method and Description |
|---|---|
void |
blockingStartTLS()
This is a blocking call !
|
void |
close() |
void |
connect() |
String |
getCipherSuite() |
AprSocketContext |
getContext() |
AprSocketContext.BlockingPollHandler |
getHandler() |
HostInfo |
getHost() |
long |
getIOTimeout() |
int |
getKeySize() |
String |
getLocalAddress() |
String |
getLocalHostname() |
int |
getLocalPort() |
byte[][] |
getPeerCert(boolean check) |
X509Certificate[] |
getPeerX509Cert() |
String |
getRemoteAddress() |
String |
getRemoteHostname() |
int |
getRemotePort() |
boolean |
isBlocking() |
boolean |
isClosed() |
boolean |
isError() |
boolean |
isPolling()
Check if the socket is currently registered with a poller.
|
int |
read(byte[] data,
int off,
int len) |
int |
read(byte[] data,
int off,
int len,
long to) |
int |
readNB(byte[] data,
int off,
int len) |
void |
recycle() |
void |
reset()
Close input and output, potentially sending RST, than close the socket.
|
void |
run() |
void |
setHandler(AprSocketContext.BlockingPollHandler l) |
String |
toString() |
int |
write(byte[] data,
int off,
int len) |
int |
write(byte[] data,
int off,
int len,
long to)
Write as much data as possible to the socket.
|
public void recycle()
public void setHandler(AprSocketContext.BlockingPollHandler l)
public boolean isPolling()
public AprSocketContext.BlockingPollHandler getHandler()
public AprSocketContext getContext()
public void connect()
throws IOException
IOExceptionpublic HostInfo getHost()
public int write(byte[] data,
int off,
int len,
long to)
throws IOException
data - off - len - IOExceptionpublic int write(byte[] data,
int off,
int len)
throws IOException
IOExceptionpublic int read(byte[] data,
int off,
int len,
long to)
throws IOException
IOExceptionpublic int read(byte[] data,
int off,
int len)
throws IOException
IOExceptionpublic int readNB(byte[] data,
int off,
int len)
throws IOException
IOExceptionpublic void close()
public void reset()
public boolean isClosed()
public long getIOTimeout()
throws IOException
IOExceptionpublic byte[][] getPeerCert(boolean check)
throws IOException
IOExceptionpublic X509Certificate[] getPeerX509Cert() throws IOException
IOExceptionpublic String getCipherSuite() throws IOException
IOExceptionpublic int getKeySize()
throws IOException
IOExceptionpublic int getRemotePort()
throws IOException
IOExceptionpublic String getRemoteAddress() throws IOException
IOExceptionpublic String getRemoteHostname() throws IOException
IOExceptionpublic int getLocalPort()
throws IOException
IOExceptionpublic String getLocalAddress() throws IOException
IOExceptionpublic String getLocalHostname() throws IOException
IOExceptionpublic boolean isBlocking()
public boolean isError()
public void blockingStartTLS()
throws IOException
IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.