Uses of Interface
org.eclipse.jetty.util.Callback
Packages that use Callback
Package
Description
Jetty Proxy : Async Proxy Support
Jetty Jaspi : Java Authentication SPI
Jetty Server : Modular Servlet Integration
Jetty Server : Core Handler API
Jetty Proxy : Async Proxy Support
Jetty WebSocket Common : Implementation [Internal Use Only]
Jetty Server : Core Handler API
Jetty Proxy : Async Proxy Support
Jetty WebSocket Common : Implementation [Internal Use Only]
Jetty IO : Core classes for Jetty IO subsystem
This module contains the main abstractions for the QUIC protocol.
Jetty Rewrite : Rewrite Handler and Rules for Jetty
Jetty Security : Modular Support for Security in Jetty
Jetty Security : Authenticators and Callbacks
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty GZIP Handler
Jetty Server : Session Management Implementations
Jetty Util : Common Utility Classes
Jetty WebSocket Common : Implementation [Internal Use Only]
-
Uses of Callback in org.eclipse.jetty.client
Classes in org.eclipse.jetty.client that implement CallbackModifier and TypeClassDescriptionprotected static classMethods in org.eclipse.jetty.client with parameters of type CallbackModifier and TypeMethodDescriptionvoidSocks5.Authentication.authenticate(EndPoint endPoint, Callback callback) Performs the authentication send and receive bytes exchanges specific for thisSocks5.Authentication.voidUpgrades the givenendPointto a different protocol.voidAsyncRequestContent.write(ByteBuffer buffer, Callback callback) protected abstract voidProxyProtocolClientConnectionFactory.ProxyProtocolConnection.writePROXYBytes(EndPoint endPoint, Callback callback) -
Uses of Callback in org.eclipse.jetty.client.transport
Classes in org.eclipse.jetty.client.transport that implement CallbackMethods in org.eclipse.jetty.client.transport with parameters of type CallbackModifier and TypeMethodDescriptionprotected abstract voidHttpSender.sendContent(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback) Implementations should send the given HTTP content over the wire.protected abstract voidHttpSender.sendHeaders(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback) Implementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the givencallbackof the result of this operation. -
Uses of Callback in org.eclipse.jetty.docs.programming.migration
Methods in org.eclipse.jetty.docs.programming.migration with parameters of type CallbackModifier and TypeMethodDescriptionbooleanbooleanServletToHandlerDocs.RequestContentAPIsByteBuffer.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.RequestContentAPIsFormFields.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.RequestContentAPIsInputStream.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.RequestContentAPIsMultiPart.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.RequestContentAPIsSource.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.RequestContentAPIsString.handle(Request request, Response response, Callback callback) booleanbooleanServletToHandlerDocs.ResponseContentAPIEcho.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPIFlush.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPIsExplicit.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPISimpleContent.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPIsImplicit.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPIsImplicitWithStatus.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPIString.handle(Request request, Response response, Callback callback) booleanServletToHandlerDocs.ResponseContentAPITrailers.handle(Request request, Response response, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee10.proxy
Classes in org.eclipse.jetty.ee10.proxy that implement CallbackModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classMethods in org.eclipse.jetty.ee10.proxy with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidbooleanAsyncMiddleManServlet.ProxyWriter.offer(ByteBuffer content, Callback callback) protected voidAsyncProxyServlet.StreamReader.onRequestContent(jakarta.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected voidAsyncProxyServlet.onResponseContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) protected voidProxyServlet.onResponseContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee10.security.jaspi
Methods in org.eclipse.jetty.ee10.security.jaspi that return CallbackMethods in org.eclipse.jetty.ee10.security.jaspi with parameters of type CallbackModifier and TypeMethodDescriptionbooleanJaspiAuthenticator.secureResponse(Request request, Response response, Callback callback, boolean mandatory, AuthenticationState.Succeeded validatedSucceeded) JaspiAuthenticator.validateRequest(Request request, Response response, Callback callback) Constructors in org.eclipse.jetty.ee10.security.jaspi with parameters of type CallbackModifierConstructorDescriptionJaspiMessageInfo(Request request, Response response, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee10.servlet
Methods in org.eclipse.jetty.ee10.servlet that return CallbackMethods in org.eclipse.jetty.ee10.servlet with parameters of type CallbackModifier and TypeMethodDescriptionvoidAssociate this channel with possibly wrapped values forServletChannel.getRequest(),ServletChannel.getResponse()andServletChannel.getCallback().voidThis method is invoked for the COMPLETE action handling in HttpChannel.handle.voidServletContextResponse.completeOutput(Callback callback) booleanbooleanbooleanbooleanprotected booleanServletContextHandler.handleByContextHandler(String pathInContext, ContextRequest request, Response response, Callback callback) protected booleanEagerFormHandler.handleFormFields(Request request, Response response, Callback callback) protected booleanEagerFormHandler.handleMultiPartFormData(Request request, String contentType, Response response, Callback callback) voidHttpOutput.sendContent(InputStream in, Callback callback) Asynchronous send of stream content.voidHttpOutput.sendContent(ByteBuffer content, Callback callback) Asynchronous send of whole content.voidHttpOutput.sendContent(ReadableByteChannel in, Callback callback) Asynchronous send of channel content.voidServletContextResponse.write(boolean last, ByteBuffer content, Callback callback) voidServletCoreResponse.write(boolean last, ByteBuffer byteBuffer, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee10.websocket.jakarta.common
Classes in org.eclipse.jetty.ee10.websocket.jakarta.common that implement CallbackModifier and TypeClassDescriptionclassWrapper of user providedSendHandlerto Jetty internalCallbackMethods in org.eclipse.jetty.ee10.websocket.jakarta.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidvoidJakartaWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidJakartaWebSocketFrameHandler.onContinuation(Frame frame, Callback callback) voidvoidvoidJakartaWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) voidvoidvoidvoidvoidJakartaWebSocketRemoteEndpoint.sendObject(Object data, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee10.websocket.jakarta.common.messages
Methods in org.eclipse.jetty.ee10.websocket.jakarta.common.messages with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.ee8.nested
Classes in org.eclipse.jetty.ee8.nested that implement CallbackModifier and TypeClassDescriptionstatic classA content represents the production of context bytes byContentProducer.nextContent().static final classEOF special content.static final classError special content.static classAbstract class that implements the standard special content behavior.static classSimple non-special content wrapper allow overriding the EOF flag.Methods in org.eclipse.jetty.ee8.nested with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidResponse.completeOutput(Callback callback) voidvoidHttpOutput.sendContent(InputStream in, Callback callback) Asynchronous send of stream content.voidHttpOutput.sendContent(ByteBuffer content, Callback callback) Asynchronous send of whole content.voidHttpOutput.sendContent(ReadableByteChannel in, Callback callback) Asynchronous send of channel content.voidHttpOutput.sendContent(HttpContent httpContent, Callback callback) Asynchronous send of HTTP content.voidHttpOutput.sendContent(Resource resource, Callback callback) Asynchronous send of whole resource.protected booleanHttpChannel.sendResponse(MetaData.Response response, ByteBuffer content, boolean complete, Callback callback) voidHttpChannel.write(ByteBuffer content, boolean complete, Callback callback) Non-Blocking write, committing the response if needed.voidHttpOutput.Interceptor.write(ByteBuffer content, boolean last, Callback callback) Write content.voidServletCoreResponse.write(boolean last, ByteBuffer byteBuffer, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee8.proxy
Classes in org.eclipse.jetty.ee8.proxy that implement CallbackModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classMethods in org.eclipse.jetty.ee8.proxy with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidbooleanAsyncMiddleManServlet.ProxyWriter.offer(ByteBuffer content, Callback callback) protected voidAsyncProxyServlet.StreamReader.onRequestContent(javax.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected voidAsyncProxyServlet.onResponseContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) protected voidProxyServlet.onResponseContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee8.websocket.common
Methods in org.eclipse.jetty.ee8.websocket.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidJettyWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidvoidvoidJettyWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee8.websocket.javax.common
Classes in org.eclipse.jetty.ee8.websocket.javax.common that implement CallbackModifier and TypeClassDescriptionclassWrapper of user providedSendHandlerto Jetty internalCallbackMethods in org.eclipse.jetty.ee8.websocket.javax.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidvoidJavaxWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidJavaxWebSocketFrameHandler.onContinuation(Frame frame, Callback callback) voidvoidvoidJavaxWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) voidvoidvoidvoidvoidJavaxWebSocketRemoteEndpoint.sendObject(Object data, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee8.websocket.javax.common.messages
Methods in org.eclipse.jetty.ee8.websocket.javax.common.messages with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.ee9.nested
Classes in org.eclipse.jetty.ee9.nested that implement CallbackModifier and TypeClassDescriptionstatic classA content represents the production of context bytes byContentProducer.nextContent().static final classEOF special content.static final classError special content.static classAbstract class that implements the standard special content behavior.static classSimple non-special content wrapper allow overriding the EOF flag.Methods in org.eclipse.jetty.ee9.nested with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidResponse.completeOutput(Callback callback) voidvoidHttpOutput.sendContent(InputStream in, Callback callback) Asynchronous send of stream content.voidHttpOutput.sendContent(ByteBuffer content, Callback callback) Asynchronous send of whole content.voidHttpOutput.sendContent(ReadableByteChannel in, Callback callback) Asynchronous send of channel content.voidHttpOutput.sendContent(HttpContent httpContent, Callback callback) Asynchronous send of HTTP content.voidHttpOutput.sendContent(Resource resource, Callback callback) Asynchronous send of whole resource.protected booleanHttpChannel.sendResponse(MetaData.Response response, ByteBuffer content, boolean complete, Callback callback) voidHttpChannel.write(ByteBuffer content, boolean complete, Callback callback) Non-Blocking write, committing the response if needed.voidHttpOutput.Interceptor.write(ByteBuffer content, boolean last, Callback callback) Write content.voidServletCoreResponse.write(boolean last, ByteBuffer byteBuffer, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee9.proxy
Classes in org.eclipse.jetty.ee9.proxy that implement CallbackModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classMethods in org.eclipse.jetty.ee9.proxy with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidbooleanAsyncMiddleManServlet.ProxyWriter.offer(ByteBuffer content, Callback callback) protected voidAsyncProxyServlet.StreamReader.onRequestContent(jakarta.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected voidAsyncProxyServlet.onResponseContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) protected voidProxyServlet.onResponseContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee9.websocket.common
Methods in org.eclipse.jetty.ee9.websocket.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidJettyWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidvoidvoidJettyWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee9.websocket.jakarta.common
Classes in org.eclipse.jetty.ee9.websocket.jakarta.common that implement CallbackModifier and TypeClassDescriptionclassWrapper of user providedSendHandlerto Jetty internalCallbackMethods in org.eclipse.jetty.ee9.websocket.jakarta.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidvoidJakartaWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidJakartaWebSocketFrameHandler.onContinuation(Frame frame, Callback callback) voidvoidvoidJakartaWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) voidvoidvoidvoidvoidJakartaWebSocketRemoteEndpoint.sendObject(Object data, Callback callback) -
Uses of Callback in org.eclipse.jetty.ee9.websocket.jakarta.common.messages
Methods in org.eclipse.jetty.ee9.websocket.jakarta.common.messages with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.fcgi.generator
Methods in org.eclipse.jetty.fcgi.generator with parameters of type CallbackModifier and TypeMethodDescriptionvoidFlusher.flush(ByteBufferPool.Accumulator accumulator, Callback callback) -
Uses of Callback in org.eclipse.jetty.fcgi.proxy
Methods in org.eclipse.jetty.fcgi.proxy with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidFastCGIProxyHandler.sendProxyToServerRequest(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Callback in org.eclipse.jetty.http2
Classes in org.eclipse.jetty.http2 that implement CallbackMethods in org.eclipse.jetty.http2 with parameters of type CallbackModifier and TypeMethodDescriptionbooleanInvoked internally and by applications to send a GO_AWAY frame to the other peer.voidHTTP2Session.data(HTTP2Stream stream, DataFrame frame, Callback callback) voidvoidHTTP2StreamEndPoint.fillInterested(Callback callback) voidHTTP2Session.frames(HTTP2Stream stream, List<? extends Frame> frames, Callback callback) booleanHTTP2Session.goAway(GoAwayFrame frame, Callback callback) voidHTTP2Stream.headers(HeadersFrame frame, Callback callback) protected voidHTTP2Session.notifyClose(Session session, GoAwayFrame frame, Callback callback) protected voidHTTP2Session.notifyFailure(Session session, Throwable failure, Callback callback) HTTP2Channel.Client.onReset(ResetFrame frame, Callback callback) protected voidHTTP2Session.onStreamFailure(Stream stream, int error, String reason, Throwable failure, Callback callback) voidintHTTP2Session.priority(PriorityFrame frame, Callback callback) voidvoidHTTP2Stream.reset(ResetFrame frame, Callback callback) voidHTTP2Stream.send(HTTP2Stream.FrameList frameList, Callback callback) voidHTTP2Session.settings(SettingsFrame frame, Callback callback) booleanHTTP2StreamEndPoint.tryFillInterested(Callback callback) voidHTTP2StreamEndPoint.write(Callback callback, ByteBuffer... buffers) Constructors in org.eclipse.jetty.http2 with parameters of type CallbackModifierConstructorDescriptionprotectedEntry(Frame frame, HTTP2Stream stream, Callback callback) -
Uses of Callback in org.eclipse.jetty.http2.api
Methods in org.eclipse.jetty.http2.api with parameters of type CallbackModifier and TypeMethodDescriptionbooleanCloses the session by sending a GOAWAY frame with the given error code and payload.voidSends the given DATAframe.voidStream.headers(HeadersFrame frame, Callback callback) Sends the given HEADERSframe.default voidSession.Listener.onClose(Session session, GoAwayFrame frame, Callback callback) Callback method invoked when a GOAWAY frame caused the session to be closed.default voidCallback method invoked when a failure has been detected for this session.default voidStream.Listener.onFailure(Stream stream, int error, String reason, Throwable failure, Callback callback) Callback method invoked when the stream failed.default voidStream.Listener.onReset(Stream stream, ResetFrame frame, Callback callback) Callback method invoked when a RST_STREAM frame has been received for this stream.voidSends the given PINGframe.intSession.priority(PriorityFrame frame, Callback callback) Sends the given PRIORITYframe.voidStream.reset(ResetFrame frame, Callback callback) Sends the given RST_STREAMframe.voidSession.settings(SettingsFrame frame, Callback callback) Sends the given SETTINGSframeto configure the session. -
Uses of Callback in org.eclipse.jetty.http2.server
Methods in org.eclipse.jetty.http2.server with parameters of type CallbackModifier and TypeMethodDescriptionvoidHTTP2ServerConnectionFactory.HTTPServerSessionListener.onClose(Session session, GoAwayFrame frame, Callback callback) voidHTTP2ServerConnectionFactory.HTTPServerSessionListener.onFailure(Session session, Throwable failure, Callback callback) voidHTTP2ServerConnectionFactory.HTTPServerSessionListener.onFailure(Stream stream, int error, String reason, Throwable failure, Callback callback) voidHTTP2ServerConnectionFactory.HTTPServerSessionListener.onReset(Stream stream, ResetFrame frame, Callback callback) voidHTTP2ServerConnectionFactory.HTTPServerSessionListener.onStreamFailure(Stream stream, Throwable failure, Callback callback) -
Uses of Callback in org.eclipse.jetty.http3
Classes in org.eclipse.jetty.http3 that implement CallbackModifier and TypeClassDescriptionclassclassclassMethods in org.eclipse.jetty.http3 with parameters of type CallbackModifier and TypeMethodDescriptionbooleanbooleanMessageFlusher.offer(QuicStreamEndPoint endPoint, Frame frame, Callback callback) abstract voidHTTP3Session.writeControlFrame(Frame frame, Callback callback) abstract voidHTTP3Session.writeMessageFrame(long streamId, Frame frame, Callback callback) -
Uses of Callback in org.eclipse.jetty.http3.client
Methods in org.eclipse.jetty.http3.client with parameters of type CallbackModifier and TypeMethodDescriptionvoidHTTP3SessionClient.writeControlFrame(Frame frame, Callback callback) voidHTTP3SessionClient.writeMessageFrame(long streamId, Frame frame, Callback callback) -
Uses of Callback in org.eclipse.jetty.io
Methods in org.eclipse.jetty.io with parameters of type CallbackModifier and TypeMethodDescriptionvoidByteBufferCallbackAccumulator.addEntry(ByteBuffer buffer, Callback callback) static Flow.Subscriber<Content.Chunk> Content.Sink.asSubscriber(Content.Sink sink, Callback callback) Wraps the given content sink with aFlow.Subscriber.static voidContent.Source.consumeAll(Content.Source source, Callback callback) Reads, non-blocking, the given content source, until afailureor EOF and discards the content.static voidContent.copy(Content.Source source, Content.Sink sink, Content.Chunk.Processor chunkProcessor, Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete.static voidContent.copy(Content.Source source, Content.Sink sink, Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete (either succeeded or failed).static voidIOResources.copy(Resource resource, Content.Sink sink, ByteBufferPool bufferPool, int bufferSize, boolean direct, long first, long length, Callback callback) Performs an asynchronous copy of a subset of the contents of a resource to a sink, using the given buffer pool and buffer characteristics.static voidIOResources.copy(Resource resource, Content.Sink sink, ByteBufferPool bufferPool, int bufferSize, boolean direct, Callback callback) Performs an asynchronous copy of the contents of a resource to a sink, using the given buffer pool and buffer characteristics.protected voidAbstractConnection.failedCallback(Callback callback, Throwable x) voidAbstractEndPoint.fillInterested(Callback callback) voidEndPoint.fillInterested(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.booleanContent.Chunk.Processor.process(Content.Chunk chunk, Callback callback) voidCall to register interest in a callback when a read is possible.voidAbstractConnection.tryFillInterested(Callback callback) booleanAbstractEndPoint.tryFillInterested(Callback callback) booleanEndPoint.tryFillInterested(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.booleanFillInterest.tryRegister(Callback callback) Call to register interest in a callback when a read is possible.voidAbstractEndPoint.write(Callback callback, ByteBuffer... buffers) voidContent.Sink.write(boolean last, ByteBuffer byteBuffer, Callback callback) Writes the givenByteBuffer, notifying theCallbackwhen the write is complete.static voidContent.Sink.write(Content.Sink sink, boolean last, String utf8Content, Callback callback) voidDatagramChannelEndPoint.write(Callback callback, SocketAddress address, ByteBuffer... buffers) default voidEndPoint.write(Callback callback, SocketAddress address, ByteBuffer... buffers) Writes to the given address the data contained in the given buffers, and invokes the given callback when either all the data has been sent, or a failure occurs.default voidEndPoint.write(Callback callback, ByteBuffer... buffers) Writes the given buffers viaEndPoint.flush(ByteBuffer...)and invokes callback methods when either all the data has been flushed or an error occurs.voidWriteFlusher.write(Callback callback, SocketAddress address, ByteBuffer... buffers) voidWriteFlusher.write(Callback callback, ByteBuffer... buffers) Tries to switch state to WRITING. -
Uses of Callback in org.eclipse.jetty.io.content
Methods in org.eclipse.jetty.io.content with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidFlush the buffered content.voidAsyncContent.write(boolean last, ByteBuffer byteBuffer, Callback callback) Writes the givenByteBuffer, notifying theCallbackwhen the write is complete.voidBufferedContentSink.write(boolean last, ByteBuffer byteBuffer, Callback callback) Constructors in org.eclipse.jetty.io.content with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.proxy
Classes in org.eclipse.jetty.proxy that implement CallbackMethods in org.eclipse.jetty.proxy with parameters of type CallbackModifier and TypeMethodDescriptionbooleanProxyHandler.handle(Request clientToProxyRequest, Response proxyToClientResponse, Callback proxyToClientCallback) protected Response.CompleteListenerProxyHandler.newServerToProxyResponseListener(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) protected voidProxyHandler.onProxyToClientResponseComplete(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback) protected voidProxyHandler.onProxyToClientResponseFailure(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected voidProxyHandler.onServerToProxyResponseFailure(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected voidProxyHandler.sendProxyToServerRequest(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) Constructors in org.eclipse.jetty.proxy with parameters of type CallbackModifierConstructorDescriptionProxyResponseListener(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Callback in org.eclipse.jetty.quic.common
Methods in org.eclipse.jetty.quic.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidQuicStreamEndPoint.fillInterested(Callback callback) booleanQuicStreamEndPoint.tryFillInterested(Callback callback) voidQuicConnection.write(Callback callback, SocketAddress remoteAddress, ByteBuffer... buffers) voidQuicStreamEndPoint.write(Callback callback, List<ByteBuffer> buffers, boolean last) -
Uses of Callback in org.eclipse.jetty.rewrite.handler
Methods in org.eclipse.jetty.rewrite.handler with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.security
Methods in org.eclipse.jetty.security with parameters of type CallbackModifier and TypeMethodDescriptionAuthenticationState.authenticate(Request request, Response response, Callback callback) Get successful authentication for a request.AuthenticationState.Deferred.authenticate(Request request, Response response, Callback callback) Authenticate the request using any credentials already associated with the request or challenging if necessary.booleanprotected voidSecurityHandler.redirectToSecure(Request request, Response response, Callback callback) Authenticator.NoOp.validateRequest(Request request, Response response, Callback callback) Authenticator.validateRequest(Request request, Response response, Callback callback) Validate a request -
Uses of Callback in org.eclipse.jetty.security.authentication
Methods in org.eclipse.jetty.security.authentication with parameters of type CallbackModifier and TypeMethodDescriptionLoginAuthenticator.LoggedOutAuthentication.authenticate(Request request, Response response, Callback callback) BasicAuthenticator.validateRequest(Request req, Response res, Callback callback) DigestAuthenticator.validateRequest(Request req, Response res, Callback callback) FormAuthenticator.validateRequest(Request request, Response response, Callback callback) SPNEGOAuthenticator.validateRequest(Request req, Response res, Callback callback) SslClientCertAuthenticator.validateRequest(Request req, Response res, Callback callback) -
Uses of Callback in org.eclipse.jetty.security.openid
Methods in org.eclipse.jetty.security.openid with parameters of type CallbackModifier and TypeMethodDescriptionOpenIdAuthenticator.validateRequest(Request request, Response response, Callback cb) -
Uses of Callback in org.eclipse.jetty.server
Subinterfaces of Callback in org.eclipse.jetty.serverModifier and TypeInterfaceDescriptioninterfaceA HttpStream is an abstraction that together withMetaData.Request, represents the flow of data from and to a single request and response cycle.Classes in org.eclipse.jetty.server that implement CallbackMethods in org.eclipse.jetty.server with parameters of type CallbackModifier and TypeMethodDescriptionvoidResourceService.doGet(Request request, Response response, Callback callback, HttpContent content) voidProxyConnectionFactory.ProxyEndPoint.fillInterested(Callback callback) booleanbooleanbooleanInvoked to handle the passed HTTP request and response.booleanprotected voidResourceService.handleWelcomeAction(Request request, Response response, Callback callback, ResourceService.WelcomeAction welcomeAction) protected booleanResourceService.passConditionalHeaders(Request request, Response response, HttpContent content, Callback callback) protected voidResourceService.redirectWelcome(Request request, Response response, Callback callback, String welcomeTarget) Redirects to the given welcome target.protected voidResourceService.rehandleWelcome(Request request, Response response, Callback callback, String welcomeTarget) Rehandles the given welcome target.voidHttpStream.send(MetaData.Request request, MetaData.Response response, boolean last, ByteBuffer content, Callback callback) Send response meta-data and/or data.voidHttpStream.Wrapper.send(MetaData.Request request, MetaData.Response response, boolean last, ByteBuffer content, Callback callback) protected voidResourceService.sendRedirect(Request request, Response response, Callback callback, String target) static voidResponse.sendRedirect(Request request, Response response, Callback callback, int code, String location, boolean consumeAvailable) Sends a302HTTP redirect status code to the given location.static voidResponse.sendRedirect(Request request, Response response, Callback callback, String location) Sends a HTTP redirect status code to the given location, without consuming the available request content.static voidResponse.sendRedirect(Request request, Response response, Callback callback, String location, boolean consumeAvailable) Sends HTTP redirect status code to the given location, without consuming the available request content.protected voidResourceService.sendWelcome(HttpContent content, String pathInContext, boolean endsWithSlash, Request request, Response response, Callback callback) protected voidResourceService.serveWelcome(Request request, Response response, Callback callback, String welcomeTarget) Serves the given welcome target.booleanProxyConnectionFactory.ProxyEndPoint.tryFillInterested(Callback callback) voidProxyConnectionFactory.ProxyEndPoint.write(Callback callback, ByteBuffer... buffers) voidResponse.Wrapper.write(boolean last, ByteBuffer byteBuffer, Callback callback) voidResponse.write(boolean last, ByteBuffer byteBuffer, Callback callback) Writes the givenByteBuffer, notifying theCallbackwhen the write is complete.static voidResponse.writeError(Request request, Response response, Callback callback, int status) Writes an error response with the given HTTP status code.static voidResponse.writeError(Request request, Response response, Callback callback, int status, String message) Writes an error response with the given HTTP status code, and the given message in the response content.static voidResponse.writeError(Request request, Response response, Callback callback, int status, String message, Throwable cause) Writes an error response with the given HTTP status code, and the given message in the response content.static voidResponse.writeError(Request request, Response response, Callback callback, Throwable cause) Writes an error response with HTTP status code500.protected voidResourceService.writeHttpContent(Request request, Response response, Callback callback, HttpContent content) protected voidResourceService.writeHttpError(Request request, Response response, Callback callback, int status) protected voidResourceService.writeHttpError(Request request, Response response, Callback callback, int status, String msg, Throwable cause) protected voidResourceService.writeHttpError(Request request, Response response, Callback callback, Throwable cause) -
Uses of Callback in org.eclipse.jetty.server.handler
Methods in org.eclipse.jetty.server.handler that return CallbackModifier and TypeMethodDescriptionConnectHandler.ConnectContext.getCallback()protected CallbackDelayedHandler.DelayedProcess.getCallback()Methods in org.eclipse.jetty.server.handler with parameters of type CallbackModifier and TypeMethodDescriptionvoidContextHandlerCollection.deployHandler(Handler handler, Callback callback) Thread safe deploy of a Handler.protected voidQoSHandler.failSuspended(Request request, Response response, Callback callback, int status, Throwable failure) Fails the given suspended request/response with the given error code and failure.protected booleanErrorHandler.generateAcceptableResponse(Request request, Response response, Callback callback, String contentType, List<Charset> charsets, int code, String message, Throwable cause) protected voidErrorHandler.generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) protected voidReHandlingErrorHandler.generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) final booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanStateTrackingHandler.handle(Request originalRequest, Response originalResponse, Callback originalCallback) booleanStatisticsHandler.MinimumDataRateHandler.handle(Request request, Response response, Callback callback) booleanprotected booleanContextHandler.handleByContextHandler(String pathInContext, ContextRequest request, Response response, Callback callback) protected voidConnectHandler.handleConnect(Request request, Response response, Callback callback, String serverAddress) Handles a CONNECT request.protected voidContextHandler.handleMovedPermanently(Request request, Response response, Callback callback) protected voidContextHandler.handleUnavailable(Request request, Response response, Callback callback) protected DelayedHandler.DelayedProcessDelayedHandler.newDelayedProcess(boolean contentExpected, String contentType, MimeTypes.Type mimeType, Handler handler, Request request, Response response, Callback callback) protected booleanConditionalHandler.nextHandler(Request request, Response response, Callback callback) Handle a request by invoking theConditionalHandler.handle(Request, Response, Callback)method of thenext Handler.booleanBufferedResponseHandler.onConditionsMet(Request request, Response response, Callback callback) protected booleanConditionalHandler.DontHandle.onConditionsMet(Request request, Response response, Callback callback) protected abstract booleanConditionalHandler.onConditionsMet(Request request, Response response, Callback callback) Handle a request that has met the conditions.protected booleanConditionalHandler.Reject.onConditionsMet(Request request, Response response, Callback callback) protected booleanConditionalHandler.SkipNext.onConditionsMet(Request request, Response response, Callback callback) protected booleanInetAccessHandler.onConditionsMet(Request request, Response response, Callback callback) booleanQoSHandler.onConditionsMet(Request request, Response response, Callback callback) booleanThreadLimitHandler.onConditionsMet(Request request, Response response, Callback callback) protected booleanBufferedResponseHandler.onConditionsNotMet(Request request, Response response, Callback callback) protected booleanConditionalHandler.ElseNext.onConditionsNotMet(Request request, Response response, Callback callback) protected abstract booleanConditionalHandler.onConditionsNotMet(Request request, Response response, Callback callback) This method is called when the request has not met the conditions and is not to be handled by this handler.protected booleanInetAccessHandler.onConditionsNotMet(Request request, Response response, Callback callback) protected booleanQoSHandler.onConditionsNotMet(Request request, Response response, Callback callback) protected booleanThreadLimitHandler.onConditionsNotMet(Request request, Response response, Callback callback) protected voidConnectHandler.onConnectFailure(Request request, Response response, Callback callback, Throwable failure) voidContextHandlerCollection.undeployHandler(Handler handler, Callback callback) Thread safe undeploy of a Handler.protected voidConnectHandler.DownstreamConnection.write(EndPoint endPoint, ByteBuffer buffer, Callback callback) protected voidConnectHandler.UpstreamConnection.write(EndPoint endPoint, ByteBuffer buffer, Callback callback) protected voidConnectHandler.write(EndPoint endPoint, ByteBuffer buffer, Callback callback, ConcurrentMap<String, Object> context) Writes (with non-blocking semantic) the given buffer of data onto the given endPoint.voidContextResponse.write(boolean last, ByteBuffer content, Callback callback) voidStatisticsHandler.MinimumDataRateHandler.MinimumDataRateResponse.write(boolean last, ByteBuffer byteBuffer, Callback callback) Constructors in org.eclipse.jetty.server.handler with parameters of type CallbackModifierConstructorDescriptionConnectContext(Request request, Response response, Callback callback, EndPoint endPoint) protectedDelayedProcess(Handler handler, Request request, Response response, Callback callback) UntilContentDelayedProcess(Handler handler, Request request, Response response, Callback callback) UntilFormDelayedProcess(Handler handler, Request wrapped, Response response, Callback callback, String contentType) UntilMultipartDelayedProcess(Handler handler, Request request, Response response, Callback callback, String contentType, MultiPartConfig config) -
Uses of Callback in org.eclipse.jetty.server.handler.gzip
Classes in org.eclipse.jetty.server.handler.gzip that implement CallbackMethods in org.eclipse.jetty.server.handler.gzip with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidGzipResponseAndCallback.commit(boolean last, Callback callback, ByteBuffer content) booleanvoidGzipResponseAndCallback.write(boolean last, ByteBuffer content, Callback callback) Constructors in org.eclipse.jetty.server.handler.gzip with parameters of type CallbackModifierConstructorDescriptionGzipResponseAndCallback(GzipHandler handler, Request request, Response response, Callback callback) -
Uses of Callback in org.eclipse.jetty.session
Methods in org.eclipse.jetty.session with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.util
Subinterfaces of Callback in org.eclipse.jetty.utilModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceA Callback implementation that calls theCallback.Completing.completed()method when it either succeeds or fails.Classes in org.eclipse.jetty.util that implement CallbackModifier and TypeClassDescriptionstatic classACompletableFuturethat is also aCallback.static classNested Completing Callback that completes after completing the nested callbackclassA callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.classclassThis specialized callback implements a pattern that allows a large asynchronous task to be broken into smaller asynchronous sub-tasks using iteration rather than recursion.classIterating Nested Callback.classDeprecated.A Closeable Callback.Fields in org.eclipse.jetty.util declared as CallbackModifier and TypeFieldDescriptionstatic final CallbackCallback.NOOPInstance of Adapter that can be used when the callback methods need an empty implementation without incurring in the cost of allocating a new Adapter object.Methods in org.eclipse.jetty.util that return CallbackModifier and TypeMethodDescriptionstatic Callbackstatic CallbackCreates a callback that runs completed when it succeeds or failsstatic CallbackCreates a callback from the given success and failure lambdas.static CallbackCreates a callback that runs theRunnableargument before completing the callback argument.static CallbackCallback.from(CompletableFuture<?> completable) Creates a non-blocking callback from the given incomplete CompletableFuture.static CallbackCallback.from(CompletableFuture<?> completable, Invocable.InvocationType invocation) Creates a callback from the given incomplete CompletableFuture, with the givenblockingcharacteristic.static CallbackCreates a callback that runs theRunnableargument after completing the callback argument.static CallbackCreates a callback which always fails the callback argument on completion.static CallbackCreates a callback that runs theConsumerargument after completing the callback argument.static CallbackCreates a callback which combines two other callbacks and will succeed or fail them both.static CallbackCallback.from(Invocable.InvocationType invocationType, Runnable completed) Creates a Callback with the giveninvocationType, that runs the givenRunnablewhen it succeeds or fails.static CallbackCallback.from(Invocable.InvocationType invocationType, Runnable success, Consumer<Throwable> failure) Creates a callback with the given InvocationType from the given success and failure lambdas.Callback.Nested.getCallback()Methods in org.eclipse.jetty.util with parameters of type CallbackModifier and TypeMethodDescriptionstatic Callbackstatic Callback.CompletableCreates a completable future given a callback.static CallbackCreates a callback that runs theRunnableargument before completing the callback argument.static CallbackCreates a callback that runs theRunnableargument after completing the callback argument.static CallbackCreates a callback which always fails the callback argument on completion.static CallbackCreates a callback that runs theConsumerargument after completing the callback argument.static CallbackCreates a callback which combines two other callbacks and will succeed or fail them both.voidGet the scanner to perform a scan cycle as soon as possible and call the Callback when the scan is finished or failed.Constructors in org.eclipse.jetty.util with parameters of type CallbackModifierConstructorDescriptionCountingCallback(Callback callback, int count) IteratingNestedCallback(Callback callback) -
Uses of Callback in org.eclipse.jetty.websocket.common
Methods in org.eclipse.jetty.websocket.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidJettyWebSocketFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) voidvoidvoidJettyWebSocketFrameHandler.onOpen(CoreSession coreSession, Callback callback) -
Uses of Callback in org.eclipse.jetty.websocket.core
Methods in org.eclipse.jetty.websocket.core with parameters of type CallbackModifier and TypeMethodDescriptionvoidInitiate close handshake with provided status code and optional reason phrase.voidInitiate close handshake, no payload (no declared status code or reason phrase).default voidCoreSession.close(CloseStatus closeStatus, Callback callback) Initiate close handshake with a providedCloseStatus.voidvoidvoidCoreSession.Empty.close(CloseStatus closeStatus, Callback callback) voidvoidvoidWebSocketCoreSession.close(CloseStatus closeStatus, Callback callback) voidWebSocketConnection.enqueueFrame(Frame frame, Callback callback, boolean batch) Enqueue a Frame to be sent.voidvoidvoidprotected voidAbstractExtension.nextIncomingFrame(Frame frame, Callback callback) protected voidAbstractExtension.nextOutgoingFrame(Frame frame, Callback callback, boolean batch) voidFrameHandler.onClosed(CloseStatus closeStatus, Callback callback) Invoked when a WebSocket close event happened.voidInvoked when an error has occurred or has been detected.voidvoidvoidvoidInvoked when a WebSocket frame is received.voidProcess the incoming frame.voidvoidFrameHandler.onOpen(CoreSession coreSession, Callback callback) Invoked when the WebSocket connection is opened.voidWebSocketCoreSession.processConnectionError(Throwable cause, Callback callback) Process an Error that originated from the connection.voidWebSocketCoreSession.processHandlerError(Throwable cause, Callback callback) Process an Error that originated from the handler.voidvoidvoidvoidA frame, and optional callback, intended for the network layer.void -
Uses of Callback in org.eclipse.jetty.websocket.core.messages
Methods in org.eclipse.jetty.websocket.core.messages with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidConsumes the WebSocket frame, possibly asynchronously when this method has returned.voidvoidvoidvoidprotected voidByteBufferMessageSink.invoke(MethodHandle methodHandle, ByteBuffer byteBuffer, Callback callback) protected voidPartialByteBufferMessageSink.invoke(MethodHandle methodHandle, ByteBuffer byteBuffer, boolean fin, Callback callback) voidMessageOutputStream.setCallback(Callback callback) voidMessageWriter.setCallback(Callback callback) -
Uses of Callback in org.eclipse.jetty.websocket.core.server
Methods in org.eclipse.jetty.websocket.core.server with parameters of type CallbackModifier and TypeMethodDescriptionWebSocketCreator.createWebSocket(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Create a websocket from the incoming request.booleanWebSocketNegotiator.negotiate(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Creates aFrameHandlerfrom the incoming request.booleanWebSocketMappings.upgrade(Request request, Response response, Callback callback, Configuration.Customizer defaultCustomizer) Attempts to find a WebSocket mapping and upgrade a request to WebSocket.booleanWebSocketMappings.upgrade(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, Configuration.Customizer defaultCustomizer) Attempts to find a WebSocket mapping and upgrade a request to WebSocket.booleanHandshaker.upgradeRequest(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, WebSocketComponents components, Configuration.Customizer defaultCustomizer) Attempts to upgrade a request to WebSocket. -
Uses of Callback in org.eclipse.jetty.websocket.core.util
Classes in org.eclipse.jetty.websocket.core.util that implement CallbackModifier and TypeClassDescriptionclassThis flusher can be used to mutated and fragmentFrames and forwarded them on towards the application using theIncomingFramesprovided in the constructor.Methods in org.eclipse.jetty.websocket.core.util with parameters of type CallbackModifier and TypeMethodDescriptionvoidThis is used within an implementation ofDemandingFlusher.handle(Frame, Callback, boolean)to forward a frame onto the next layer of processing.protected abstract voidFragmentingFlusher.forwardFrame(Frame frame, Callback callback, boolean batch) protected abstract booleanCalled when there is demand for a single frame to be produced.voidUsed to supply the flusher with a new frame.protected booleanprotected abstract booleanCalled when a frame is ready to be transformed.final voidprotected booleanprotected abstract booleanCalled to transform the frame given inTransformingFlusher.onFrame(Frame, Callback, boolean). -
Uses of Callback in org.eclipse.jetty.websocket.server
Methods in org.eclipse.jetty.websocket.server with parameters of type CallbackModifier and TypeMethodDescriptionWebSocketCreator.createWebSocket(ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse, Callback callback) Creates a WebSocket endpoint instance from the incoming request.booleanMatches the givenrequestagainst existing WebSocket mappings, upgrading to WebSocket if there is a match.booleanprotected booleanWebSocketUpgradeHandler.handle(ServerWebSocketContainer container, Request request, Response response, Callback callback) booleanServerWebSocketContainer.upgrade(WebSocketCreator creator, Request request, Response response, Callback callback) Upgrades the givenrequestwithout matching against the WebSocket mappings.