Package org.eclipse.jetty.server
Class LocalConnector.LocalEndPoint
java.lang.Object
org.eclipse.jetty.io.IdleTimeout
org.eclipse.jetty.io.AbstractEndPoint
org.eclipse.jetty.io.ByteArrayEndPoint
org.eclipse.jetty.server.LocalConnector.LocalEndPoint
- All Implemented Interfaces:
Closeable
,AutoCloseable
,EndPoint
- Enclosing class:
- LocalConnector
Local EndPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.EndPoint
EndPoint.Wrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
Wait for a response using a parser to detect the end of messagegetResponse
(boolean head, long time, TimeUnit unit) Wait for a response using a parser to detect the end of messageRemaining output ByteBuffer after calls togetResponse()
orwaitForResponse(boolean, long, TimeUnit)
void
Callback method invoked when thisEndPoint
is closed.waitForResponse
(boolean head, long time, TimeUnit unit) Wait for a response using a parser to detect the end of messagevoid
void
waitUntilClosedOrIdleFor
(long idleFor, TimeUnit units) Methods inherited from class org.eclipse.jetty.io.ByteArrayEndPoint
addInput, addInput, addInput, addInputAndExecute, addInputEOF, doClose, fill, flush, getLocalSocketAddress, getOutput, getOutputString, getOutputString, getRemoteSocketAddress, getTransport, hasMore, isGrowOutput, needsFillInterest, onIncompleteFlush, reset, setGrowOutput, setOutput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutput
Methods inherited from class org.eclipse.jetty.io.AbstractEndPoint
close, close, doShutdownInput, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, getWriteFlusher, isFillInterested, isInputShutdown, isOpen, isOutputShutdown, onClose, onIdleExpired, onOpen, setConnection, shutdownInput, shutdownOutput, toConnectionString, toEndPointString, tryFillInterested, upgrade, write
Methods inherited from class org.eclipse.jetty.io.IdleTimeout
checkIdleTimeout, getIdleFor, getIdleTimeout, getScheduler, notIdle, setIdleTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.EndPoint
getIdleTimeout, setIdleTimeout
-
Constructor Details
-
LocalEndPoint
public LocalEndPoint()
-
-
Method Details
-
execute
- Overrides:
execute
in classByteArrayEndPoint
-
onClose
Description copied from interface:EndPoint
Callback method invoked when this
EndPoint
is closed.- Specified by:
onClose
in interfaceEndPoint
- Overrides:
onClose
in classAbstractEndPoint
- Parameters:
cause
- The reason for the close, or null if a normal close.- See Also:
-
doShutdownOutput
public void doShutdownOutput()- Overrides:
doShutdownOutput
in classByteArrayEndPoint
-
waitUntilClosed
public void waitUntilClosed() -
waitUntilClosedOrIdleFor
-
getResponseData
Remaining output ByteBuffer after calls togetResponse()
orwaitForResponse(boolean, long, TimeUnit)
- Returns:
- the remaining response data buffer
-
getResponse
Wait for a response using a parser to detect the end of message- Returns:
- Buffer containing full response or null for EOF;
- Throws:
Exception
- if the response cannot be parsed
-
getResponse
Wait for a response using a parser to detect the end of message- Parameters:
head
- whether the request is a HEAD requesttime
- the maximum time to waitunit
- the time unit of thetimeout
argument- Returns:
- Buffer containing full response or null for EOF;
- Throws:
Exception
- if the response cannot be parsed
-
waitForResponse
Wait for a response using a parser to detect the end of message- Parameters:
head
- whether the request is a HEAD requesttime
- the maximum time to waitunit
- the time unit of thetimeout
argument- Returns:
- Buffer containing full response or null for EOF;
- Throws:
Exception
- if the response cannot be parsed
-