Class PushEvent
java.lang.Object
org.glassfish.grizzly.http.server.http2.PushEvent
- All Implemented Interfaces:
FilterChainEvent
A
FilterChainEvent to trigger an HTTP/2 push promise and trigger a new request to be sent upstream to
generate a response for said push promise.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PushEvent.PushEventBuilderbuilder()static PushEventcreate(PushBuilder builder) Construct a newPushEventbased on the values contained within the providedPushBuilder.getPath()voidrecycle()This should be called by the entity generating the actual push and container requests.type()
-
Field Details
-
TYPE
-
-
Method Details
-
type
- Specified by:
typein interfaceFilterChainEvent
-
create
Construct a newPushEventbased on the values contained within the providedPushBuilder. -
getMethod
- Returns:
- the HTTP Method of the push request.
-
getHeaders
- Returns:
- the headers of the push request.
-
getPath
- Returns:
- the path of the push request.
-
getHttpRequest
- Returns:
- the
HttpRequestPacketof the original request. This is necessary in order to lookup the parent stream.
-
recycle
public void recycle()This should be called by the entity generating the actual push and container requests. Developers using this event can ignore this. -
builder
- Returns:
- a new
PushEvent.PushEventBuilderfor constructing aPushEventwith all of the necessary values to generate a push and container request.
-