public class LocalConnector.LocalEndPoint
extends org.eclipse.jetty.io.ByteArrayEndPoint
| Constructor | Description |
|---|---|
LocalEndPoint() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected void |
execute(java.lang.Runnable task) |
|
java.lang.String |
getResponse() |
Wait for a response using a parser to detect the end of message
|
java.lang.String |
getResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit) |
Wait for a response using a parser to detect the end of message
|
void |
onClose() |
|
void |
shutdownOutput() |
|
java.nio.ByteBuffer |
waitForResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit) |
Wait for a response using a parser to detect the end of message
|
void |
waitUntilClosed() |
|
void |
waitUntilClosedOrIdleFor(long idleFor,
java.util.concurrent.TimeUnit units) |
close, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, getWriteFlusher, isFillInterested, isOptimizedForDirectBuffers, onIdleExpired, onOpen, setConnection, tryFillInterested, upgrade, writeaddInput, addInput, addInput, addInputAndExecute, addInputEOF, fill, flush, getOutput, getOutputString, getOutputString, getTransport, hasMore, isGrowOutput, isInputShutdown, isOpen, isOutputShutdown, needsFillInterest, onIncompleteFlush, reset, setGrowOutput, setOutput, shutdownInput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutputprotected void execute(java.lang.Runnable task)
execute in class org.eclipse.jetty.io.ByteArrayEndPointpublic void close()
close in class org.eclipse.jetty.io.ByteArrayEndPointpublic void onClose()
onClose in class org.eclipse.jetty.io.IdleTimeoutpublic void shutdownOutput()
shutdownOutput in class org.eclipse.jetty.io.ByteArrayEndPointpublic void waitUntilClosed()
public void waitUntilClosedOrIdleFor(long idleFor,
java.util.concurrent.TimeUnit units)
public java.lang.String getResponse()
throws java.lang.Exception
java.lang.Exception - if the response cannot be parsedpublic java.lang.String getResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.Exception - if the response cannot be parsedpublic java.nio.ByteBuffer waitForResponse(boolean head,
long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.Exception - if the response cannot be parsedCopyright © 1995–2018 Webtide. All rights reserved.