public class PushEvent extends Object implements org.glassfish.grizzly.filterchain.FilterChainEvent
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.| Modifier and Type | Class and Description |
|---|---|
static class |
PushEvent.PushEventBuilder
Construct a new
PushEvent. |
| Modifier and Type | Method and Description |
|---|---|
static PushEvent.PushEventBuilder |
builder() |
static PushEvent |
create(PushBuilder builder)
Construct a new
PushEvent based on the values contained within the provided PushBuilder. |
org.glassfish.grizzly.http.util.MimeHeaders |
getHeaders() |
org.glassfish.grizzly.http.HttpHeader |
getHttpRequest() |
String |
getMethod() |
String |
getPath() |
void |
recycle()
This should be called by the entity generating the actual push and container requests.
|
Object |
type() |
public static final Object TYPE
public Object type()
type in interface org.glassfish.grizzly.filterchain.FilterChainEventpublic static PushEvent create(PushBuilder builder)
PushEvent based on the values contained within the provided PushBuilder.public String getMethod()
public org.glassfish.grizzly.http.util.MimeHeaders getHeaders()
public String getPath()
public org.glassfish.grizzly.http.HttpHeader getHttpRequest()
HttpRequestPacket of the original request. This is necessary in order to lookup the parent
stream.public void recycle()
public static PushEvent.PushEventBuilder builder()
PushEvent.PushEventBuilder for constructing a PushEvent with all of the necessary values to
generate a push and container request.Copyright © 2017–2021 Oracle Corporation. All rights reserved.