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
IOException
public HostInfo getHost()
public int write(byte[] data, int off, int len, long to) throws IOException
data
- off
- len
- IOException
public int write(byte[] data, int off, int len) throws IOException
IOException
public int read(byte[] data, int off, int len, long to) throws IOException
IOException
public int read(byte[] data, int off, int len) throws IOException
IOException
public int readNB(byte[] data, int off, int len) throws IOException
IOException
public void close()
public void reset()
public boolean isClosed()
public long getIOTimeout() throws IOException
IOException
public byte[][] getPeerCert(boolean check) throws IOException
IOException
public X509Certificate[] getPeerX509Cert() throws IOException
IOException
public String getCipherSuite() throws IOException
IOException
public int getKeySize() throws IOException
IOException
public int getRemotePort() throws IOException
IOException
public String getRemoteAddress() throws IOException
IOException
public String getRemoteHostname() throws IOException
IOException
public int getLocalPort() throws IOException
IOException
public String getLocalAddress() throws IOException
IOException
public String getLocalHostname() throws IOException
IOException
public boolean isBlocking()
public boolean isError()
public void blockingStartTLS() throws IOException
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.