public class LocalConnector.LocalEndPoint extends ByteArrayEndPoint
| Constructor and Description |
|---|
LocalEndPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
doShutdownOutput() |
String |
getResponse()
Wait for a response using a parser to detect the end of message
|
String |
getResponse(boolean head,
long time,
TimeUnit unit)
Wait for a response using a parser to detect the end of message
|
ByteBuffer |
getResponseData()
Remaining output ByteBuffer after calls to
getResponse() or waitForResponse(boolean, long, TimeUnit) |
void |
onClose()
Callback method invoked when this
EndPoint is close. |
ByteBuffer |
waitForResponse(boolean head,
long time,
TimeUnit unit)
Wait for a response using a parser to detect the end of message
|
void |
waitUntilClosed() |
void |
waitUntilClosedOrIdleFor(long idleFor,
TimeUnit units) |
addInput, addInput, addInput, addInputAndExecute, addInputEOF, doClose, fill, flush, getLocalAddress, getOutput, getOutputString, getOutputString, getRemoteAddress, getTransport, hasMore, isGrowOutput, reset, setGrowOutput, setOutput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutputcheckFill, checkFlush, close, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getWriteFlusher, isFillInterested, isInputShutdown, isOpen, isOptimizedForDirectBuffers, isOutputShutdown, onOpen, setConnection, shutdownOutput, toConnectionString, toEndPointString, tryFillInterested, upgrade, writegetIdleFor, getIdleTimeout, getScheduler, notIdle, setIdleTimeoutequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdleTimeout, setIdleTimeoutpublic void onClose()
EndPointCallback method invoked when this EndPoint is close.
onClose in interface EndPointonClose in class AbstractEndPointEndPoint.onOpen()public void doShutdownOutput()
doShutdownOutput in class ByteArrayEndPointpublic void waitUntilClosed()
public void waitUntilClosedOrIdleFor(long idleFor,
TimeUnit units)
public ByteBuffer getResponseData()
getResponse() or waitForResponse(boolean, long, TimeUnit)public String getResponse() throws Exception
Exception - if the response cannot be parsedpublic String getResponse(boolean head, long time, TimeUnit unit) throws Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentException - if the response cannot be parsedpublic ByteBuffer waitForResponse(boolean head, long time, TimeUnit unit) throws Exception
head - whether the request is a HEAD requesttime - the maximum time to waitunit - the time unit of the timeout argumentException - if the response cannot be parsedCopyright © 2010 - 2020 Adobe. All Rights Reserved