public class PushEvent extends Object implements 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. |
MimeHeaders |
getHeaders() |
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 FilterChainEventpublic static PushEvent create(PushBuilder builder)
PushEvent based on the values contained within the
provided PushBuilder.public String getMethod()
public MimeHeaders getHeaders()
public String getPath()
public 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 Oracle Corporation. All Rights Reserved.