- Direct Known Subclasses:
Outgoing request flow upstream and are served externally.
A result of
true indicates that the request has been processed,
i.e. a response has been sent or will sent.
Nested Class SummaryModifier and TypeClassDescription
static classRepresents a HTTP CONNECT request.
static classRepresents a HTTP DELETE request.
static classRepresents a HTTP GET request.
static classRepresents a HTTP HEAD request.
static classRepresents a HTTP OPTIONS request.
static classRepresents a HTTP POST request.
static classRepresents a HTTP PUT request.
static classRepresents a HTTP TRACE request.
Method SummaryModifier and TypeMethodDescriptionReturns the connected callback.The HTTP request that will be sent by the event.Returns an absolute URI of the request.Sets a “connected callback”.
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
OutInstantiates a new request.
method- the method
url- the url
setConnectedCallbackSets a “connected callback”.
Request.Outevent is created, the network connection is not yet known. Some header fields’ values, however, need e.g. the port information from the connection. Therefore a callback may be set which is invoked when the connection has been obtained that will be used to send the request.
connectedCallback- the connected callback
- the out
connectedCallbackReturns the connected callback.
- the connected callback, if set
httpRequestThe HTTP request that will be sent by the event.
- the http request
requestUriReturns an absolute URI of the request.
- the URI