public class PushEvent extends java.lang.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 | Field and Description |
|---|---|
static java.lang.Object |
TYPE |
| 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() |
java.lang.String |
getMethod() |
java.lang.String |
getPath() |
void |
recycle()
This should be called by the entity generating the actual push and container requests.
|
java.lang.Object |
type() |
public java.lang.Object type()
type in interface FilterChainEventpublic static PushEvent create(PushBuilder builder)
PushEvent based on the values contained within the
provided PushBuilder.public java.lang.String getMethod()
public MimeHeaders getHeaders()
public java.lang.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 © 2018 Oracle Corporation. All Rights Reserved.