Class PushEvent.PushEventBuilder
java.lang.Object
org.glassfish.grizzly.http.server.http2.PushEvent.PushEventBuilder
- Enclosing class:
- PushEvent
-
Method Summary
Modifier and TypeMethodDescriptionbuild()headers(org.glassfish.grizzly.http.util.MimeHeaders val) The headers of the push request.httpRequest(org.glassfish.grizzly.http.HttpRequestPacket val) TheHttpRequestPacketof the original request.The push method.The path of the push request.
-
Method Details
-
method
The push method. Defaults toMethod.GET.- Returns:
- this
- Throws:
NullPointerException- if no value is provided.IllegalArgumentException- if the argument is the empty String, or any non-cacheable or unsafe methods defined in RFC 7231, which are POST, PUT, DELETE, CONNECT, OPTIONS and TRACE.
-
headers
The headers of the push request.- Returns:
- this
- Throws:
NullPointerException- if noMimeHeadersis provided.
-
path
The path of the push request.- Returns:
- this
-
httpRequest
TheHttpRequestPacketof the original request. This is necessary in order to lookup the parent stream.- Returns:
- this
- Throws:
NullPointerException- if noHttpRequestPacketis provided.
-
build
- Returns:
- a new PushEvent based on the provided values.
- Throws:
IllegalArgumentException- if no value has been provided by invokingpath(String),httpRequest(HttpRequestPacket), orheaders(MimeHeaders).
-