Class PushEvent
- java.lang.Object
-
- org.glassfish.grizzly.http.server.http2.PushEvent
-
- All Implemented Interfaces:
FilterChainEvent
public class PushEvent extends java.lang.Object implements FilterChainEvent
AFilterChainEventto 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 Modifier and Type Class Description static classPushEvent.PushEventBuilderConstruct a newPushEvent.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PushEvent.PushEventBuilderbuilder()static PushEventcreate(PushBuilder builder)Construct a newPushEventbased on the values contained within the providedPushBuilder.MimeHeadersgetHeaders()HttpHeadergetHttpRequest()java.lang.StringgetMethod()java.lang.StringgetPath()voidrecycle()This should be called by the entity generating the actual push and container requests.java.lang.Objecttype()
-
-
-
Method Detail
-
type
public java.lang.Object type()
- Specified by:
typein interfaceFilterChainEvent
-
create
public static PushEvent create(PushBuilder builder)
Construct a newPushEventbased on the values contained within the providedPushBuilder.
-
getMethod
public java.lang.String getMethod()
- Returns:
- the HTTP Method of the push request.
-
getHeaders
public MimeHeaders getHeaders()
- Returns:
- the headers of the push request.
-
getPath
public java.lang.String getPath()
- Returns:
- the path of the push request.
-
getHttpRequest
public HttpHeader 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
public static PushEvent.PushEventBuilder builder()
- Returns:
- a new
PushEvent.PushEventBuilderfor constructing aPushEventwith all of the necessary values to generate a push and container request.
-
-