public interface Transport
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the transport.
|
String |
getAddress()
Getter for address value.
|
InetAddress |
getInetAddress()
Getter for address value.
|
int |
getLocalPort()
Getter for local port value.
|
int |
getPort()
Getter for port value.
|
default Certificate[] |
getSSLCertificates()
Getter for certificates from session
|
default String |
getSSLCipherSuite()
Getter for cipher suite from session
|
default String |
getSSLProtocol()
Getter for ssl protocol from session
|
boolean |
isBlockingSocket() |
boolean |
isOpen()
Returns true if, transport is open.
|
void |
open()
Open the transport.
|
int |
read(byte[] buffer)
Transport dependent read method.
|
int |
read(byte[] buffer,
int offset,
int length)
Transport dependent read method.
|
int |
read(ByteBuffer buffer) |
int |
read(ByteBuffer buffer,
int offset,
int length) |
void |
waitUntilReadyToWrite() |
void |
write(byte[] message)
Transport dependent write method.
|
int |
write(byte[] message,
int offset,
int length)
Transport dependent write method.
|
int |
write(ByteBuffer message) |
int |
write(ByteBuffer message,
int offset,
int length) |
boolean isBlockingSocket()
void write(byte[] message) throws IOException
message
- actual messageIOException
- if unable to writeint write(ByteBuffer message) throws IOException
IOException
int write(byte[] message, int offset, int length) throws IOException
message
- actual messageoffset
- the offset in bufferlength
- the num of bytes to writeIOException
- if unable to writeint write(ByteBuffer message, int offset, int length) throws IOException
IOException
void waitUntilReadyToWrite() throws IOException
IOException
int read(byte[] buffer, int offset, int length) throws IOException
buffer
- holder for read bytesoffset
- in bufferlength
- maximum bytes to be readIOException
- if unable to readint read(ByteBuffer buffer, int offset, int length) throws IOException
IOException
int read(byte[] buffer) throws IOException
buffer
- holder for read bytesIOException
- if unable to readint read(ByteBuffer buffer) throws IOException
IOException
String getAddress()
InetAddress getInetAddress()
int getPort()
int getLocalPort()
void open() throws IOException
IOException
- - throws if error occurredvoid close() throws IOException
IOException
- - throws if error occurredboolean isOpen()
default String getSSLProtocol()
default String getSSLCipherSuite()
default Certificate[] getSSLCertificates()
Copyright © 2000–2022 EPAM Systems. All rights reserved.