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:
java.io.Closeable,java.lang.AutoCloseable,EndPoint
- Enclosing class:
- LocalConnector
@Deprecated(since="2021-05-27") public class LocalConnector.LocalEndPoint extends ByteArrayEndPoint
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Local EndPoint
-
-
Constructor Summary
Constructors Constructor Description LocalEndPoint()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoShutdownOutput()Deprecated.java.lang.StringgetResponse()Deprecated.Wait for a response using a parser to detect the end of messagejava.lang.StringgetResponse(boolean head, long time, java.util.concurrent.TimeUnit unit)Deprecated.Wait for a response using a parser to detect the end of messagejava.nio.ByteBuffergetResponseData()Deprecated.Remaining output ByteBuffer after calls togetResponse()orwaitForResponse(boolean, long, TimeUnit)voidonClose()Deprecated.Callback method invoked when this EndPoint is close.java.nio.ByteBufferwaitForResponse(boolean head, long time, java.util.concurrent.TimeUnit unit)Deprecated.Wait for a response using a parser to detect the end of messagevoidwaitUntilClosed()Deprecated.voidwaitUntilClosedOrIdleFor(long idleFor, java.util.concurrent.TimeUnit units)Deprecated.-
Methods inherited from class org.eclipse.jetty.io.ByteArrayEndPoint
addInput, addInput, addInput, addInputAndExecute, addInputEOF, doClose, fill, flush, getLocalAddress, getOutput, getOutputString, getOutputString, getRemoteAddress, getTransport, hasMore, isGrowOutput, reset, setGrowOutput, setOutput, takeOutput, takeOutputString, takeOutputString, toString, waitForOutput
-
Methods inherited from class org.eclipse.jetty.io.AbstractEndPoint
checkFill, checkFlush, close, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getWriteFlusher, isFillInterested, isInputShutdown, isOpen, isOptimizedForDirectBuffers, isOutputShutdown, onOpen, setConnection, shutdownOutput, toConnectionString, toEndPointString, tryFillInterested, upgrade, write
-
Methods inherited from class org.eclipse.jetty.io.IdleTimeout
getIdleFor, getIdleTimeout, getScheduler, notIdle, setIdleTimeout
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.EndPoint
getIdleTimeout, setIdleTimeout
-
-
-
-
Method Detail
-
onClose
public void onClose()
Deprecated.Description copied from interface:EndPointCallback method invoked when this EndPoint is close.
- Specified by:
onClosein interfaceEndPoint- Overrides:
onClosein classAbstractEndPoint- See Also:
EndPoint.onOpen()
-
doShutdownOutput
public void doShutdownOutput()
Deprecated.- Overrides:
doShutdownOutputin classByteArrayEndPoint
-
waitUntilClosed
public void waitUntilClosed()
Deprecated.
-
waitUntilClosedOrIdleFor
public void waitUntilClosedOrIdleFor(long idleFor, java.util.concurrent.TimeUnit units)Deprecated.
-
getResponseData
public java.nio.ByteBuffer getResponseData()
Deprecated.Remaining output ByteBuffer after calls togetResponse()orwaitForResponse(boolean, long, TimeUnit)- Returns:
- the remaining response data buffer
-
getResponse
public java.lang.String getResponse() throws java.lang.ExceptionDeprecated.Wait for a response using a parser to detect the end of message- Returns:
- Buffer containing full response or null for EOF;
- Throws:
java.lang.Exception- if the response cannot be parsed
-
getResponse
public java.lang.String getResponse(boolean head, long time, java.util.concurrent.TimeUnit unit) throws java.lang.ExceptionDeprecated.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 thetimeoutargument- Returns:
- Buffer containing full response or null for EOF;
- Throws:
java.lang.Exception- if the response cannot be parsed
-
waitForResponse
public java.nio.ByteBuffer waitForResponse(boolean head, long time, java.util.concurrent.TimeUnit unit) throws java.lang.ExceptionDeprecated.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 thetimeoutargument- Returns:
- Buffer containing full response or null for EOF;
- Throws:
java.lang.Exception- if the response cannot be parsed
-
-