Package org.jgrapes.http.events
Class Request.In.Connect
java.lang.Object
org.jgrapes.core.internal.EventBase<Boolean>
org.jgrapes.core.Event<Boolean>
org.jgrapes.http.events.MessageReceived<Boolean>
org.jgrapes.http.events.Request<Boolean>
org.jgrapes.http.events.Request.In
org.jgrapes.http.events.Request.In.Connect
- All Implemented Interfaces:
Future<Boolean>
,Associator
,Eligible
- Enclosing class:
Request.In
Represents a HTTP CONNECT request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgrapes.http.events.Request.In
Request.In.Completed, Request.In.Connect, Request.In.Delete, Request.In.Get, Request.In.Head, Request.In.Options, Request.In.Post, Request.In.Put, Request.In.Trace
Nested classes/interfaces inherited from class org.jgrapes.http.events.Request
Request.In, Request.Out
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor
-
Constructor Summary
ConstructorDescriptionConnect
(HttpRequest request, boolean secure, int matchLevels, Channel... channels) Create a new event. -
Method Summary
Modifier and TypeMethodDescriptionprotected URI
effectiveRequestUri
(String protocol, HttpRequest request) Builds the URI that represents this request.Methods inherited from class org.jgrapes.http.events.Request.In
createMatchValue, defaultCriterion, fromHttpRequest, fulfilled, httpRequest, isEligibleFor, requestUri, setRequestUri, toString
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, forChannels, get, get, handled, handlingError, isCancelled, isDone, 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
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
Connect
public Connect(HttpRequest request, boolean secure, int matchLevels, Channel... channels) throws URISyntaxException Create a new event.- Parameters:
request
- the request datasecure
- indicates whether the request was received on a secure channelmatchLevels
- the number of elements from the request path to use in the match valuechannels
- the channels on which the event is to be fired (optional)- Throws:
URISyntaxException
-
-
Method Details
-
effectiveRequestUri
Builds the URI that represents this request.This implementation returns the request URI without path and query component.
- Overrides:
effectiveRequestUri
in classRequest.In
- Parameters:
protocol
- the protocolrequest
- the request- Returns:
- the uri
- Throws:
URISyntaxException
- the URI syntax exception- See Also:
-