|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.io.nio.SslConnection.SslEndPoint
public class SslConnection.SslEndPoint
| 构造方法摘要 | |
|---|---|
SslConnection.SslEndPoint()
|
|
| 方法摘要 | |
|---|---|
void |
asyncDispatch()
Dispatch the endpoint. |
boolean |
blockReadable(long millisecs)
|
boolean |
blockWritable(long millisecs)
|
void |
cancelTimeout(Timeout.Task task)
|
void |
close()
Close any backing stream associated with the endpoint |
void |
dispatch()
Dispatch the endpoint if it is not already dispatched |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. |
void |
flush()
Flush any buffered output. |
int |
flush(Buffer buffer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
int |
flush(Buffer header,
Buffer buffer,
Buffer trailer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
Connection |
getConnection()
|
AsyncEndPoint |
getEndpoint()
|
String |
getLocalAddr()
|
String |
getLocalHost()
|
int |
getLocalPort()
|
int |
getMaxIdleTime()
Get the max idle time in ms. |
String |
getRemoteAddr()
|
String |
getRemoteHost()
|
int |
getRemotePort()
|
SSLEngine |
getSslEngine()
|
Object |
getTransport()
|
boolean |
hasProgressed()
|
boolean |
isBlocking()
|
boolean |
isCheckForIdle()
Get if the endpoint should be checked for idleness |
boolean |
isInputShutdown()
|
boolean |
isOpen()
|
boolean |
isOutputShutdown()
|
boolean |
isWritable()
|
void |
onIdleExpired(long idleForMs)
Callback when idle. |
void |
scheduleTimeout(Timeout.Task task,
long timeoutMs)
|
void |
scheduleWrite()
Schedule a write dispatch. |
void |
setCheckForIdle(boolean check)
Set if the endpoint should be checked for idleness |
void |
setConnection(Connection connection)
|
void |
setMaxIdleTime(int timeMs)
Set the max idle time. |
void |
shutdownInput()
Shutdown any backing input stream associated with the endpoint |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SslConnection.SslEndPoint()
| 方法详细信息 |
|---|
public SSLEngine getSslEngine()
public AsyncEndPoint getEndpoint()
public void shutdownOutput()
throws IOException
EndPoint 复制的描述
EndPoint 中的 shutdownOutputIOExceptionpublic boolean isOutputShutdown()
EndPoint 中的 isOutputShutdown
public void shutdownInput()
throws IOException
EndPoint 复制的描述
EndPoint 中的 shutdownInputIOExceptionpublic boolean isInputShutdown()
EndPoint 中的 isInputShutdown
public void close()
throws IOException
EndPoint 复制的描述
EndPoint 中的 closeIOException
public int fill(Buffer buffer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 fillint value indicating the number of bytes
filled or -1 if EOF is reached.
EofException - If input is shutdown or the endpoint is closed.
IOException
public int flush(Buffer buffer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushbuffer - The buffer to flush. This buffers getIndex is updated.
EofException - If the endpoint is closed or output is shutdown.
IOException
public int flush(Buffer header,
Buffer buffer,
Buffer trailer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushheader - A buffer to write before flushing this buffer. This buffers getIndex is updated.buffer - The buffer to flush. This buffers getIndex is updated.trailer - A buffer to write after flushing this buffer. This buffers getIndex is updated.
IOException
public boolean blockReadable(long millisecs)
throws IOException
EndPoint 中的 blockReadableIOException
public boolean blockWritable(long millisecs)
throws IOException
EndPoint 中的 blockWritableIOExceptionpublic boolean isOpen()
EndPoint 中的 isOpenpublic Object getTransport()
EndPoint 中的 getTransport
public void flush()
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushEofException - If the endpoint is closed or output is shutdown.
IOExceptionpublic void dispatch()
AsyncEndPoint 复制的描述
AsyncEndPoint 中的 dispatchpublic void asyncDispatch()
AsyncEndPoint 复制的描述
AsyncEndPoint 中的 asyncDispatchpublic void scheduleWrite()
AsyncEndPoint 复制的描述
AsyncEndPoint 中的 scheduleWritepublic void onIdleExpired(long idleForMs)
AsyncEndPoint 复制的描述An endpoint is idle if there has been no IO activity for
EndPoint.getMaxIdleTime() and AsyncEndPoint.isCheckForIdle() is true.
AsyncEndPoint 中的 onIdleExpiredidleForMs - TODOpublic void setCheckForIdle(boolean check)
AsyncEndPoint 复制的描述
AsyncEndPoint 中的 setCheckForIdlepublic boolean isCheckForIdle()
AsyncEndPoint 复制的描述
AsyncEndPoint 中的 isCheckForIdle
public void scheduleTimeout(Timeout.Task task,
long timeoutMs)
AsyncEndPoint 中的 scheduleTimeoutpublic void cancelTimeout(Timeout.Task task)
AsyncEndPoint 中的 cancelTimeoutpublic boolean isWritable()
AsyncEndPoint 中的 isWritablepublic boolean hasProgressed()
AsyncEndPoint 中的 hasProgressedAsyncEndPoint.hasProgressed()public String getLocalAddr()
EndPoint 中的 getLocalAddrEndPoint is bound, or null
if this EndPoint does not represent a network connection.public String getLocalHost()
EndPoint 中的 getLocalHostEndPoint is bound, or null
if this EndPoint does not represent a network connection.public int getLocalPort()
EndPoint 中的 getLocalPortEndPoint is listening, or 0
if this EndPoint does not represent a network connection.public String getRemoteAddr()
EndPoint 中的 getRemoteAddrEndPoint is connected, or null
if this EndPoint does not represent a network connection.public String getRemoteHost()
EndPoint 中的 getRemoteHostEndPoint is connected, or null
if this EndPoint does not represent a network connection.public int getRemotePort()
EndPoint 中的 getRemotePortEndPoint is connected, or 0
if this EndPoint does not represent a network connection.public boolean isBlocking()
EndPoint 中的 isBlockingpublic int getMaxIdleTime()
EndPoint 复制的描述The max idle time is the time the endpoint can be idle before
extraordinary handling takes place. This loosely corresponds to
the Socket.getSoTimeout() for blocking connections,
but AsyncEndPoint implementations must use other mechanisms
to implement the max idle time.
EndPoint 中的 getMaxIdleTime
public void setMaxIdleTime(int timeMs)
throws IOException
EndPoint 复制的描述
EndPoint 中的 setMaxIdleTimetimeMs - the max idle time in MS. Timeout <= 0 implies an infinite timeout
IOException - if the timeout cannot be set.public Connection getConnection()
ConnectedEndPoint 中的 getConnectionpublic void setConnection(Connection connection)
ConnectedEndPoint 中的 setConnectionpublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||