| Modifier and Type | Field and Description |
|---|---|
| private final HttpFields. | |
| private String | |
| private String | |
| private String | |
| private final ServletContextRequest | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PushBuilder | addHeader(String
The header name to add name, String The header value to add value)Implements jakarta. Add a request header to be used for the push. |
| public String | getHeader(String
the name of the header name)Implements jakarta. |
| public Set | getHeaderNames()
Implements jakarta. |
| public String | getMethod()
Implements jakarta. |
| public String | getPath()
Implements jakarta. |
| public String | getQueryString()
Implements jakarta. |
| public String | getSessionId()
Implements jakarta. |
| public PushBuilder | method(String
the method to be used for the push. method)Implements jakarta. Set the method to be used for the push. |
| public PushBuilder | path(String
the URI path to be used for the push, which may include a query string. path)Implements jakarta. |
| public void | push()
Implements jakarta. |
| public PushBuilder | queryString(String
the query string to be used for the push. queryString)Implements jakarta. |
| public PushBuilder | removeHeader(String
The name of the header to remove name)Implements jakarta. Remove the named request header. |
| public PushBuilder | sessionId(String
the SessionID to be used for the push. sessionId)Implements jakarta. |
| public PushBuilder | setHeader(String
The header name to set name, String The header value to set value)Implements jakarta. Set a request header to be used for the push. |
| _headers | back to summary |
|---|---|
| private final HttpFields. | |
| _method | back to summary |
|---|---|
| private String _method | |
| _path | back to summary |
|---|---|
| private String _path | |
| _query | back to summary |
|---|---|
| private String _query | |
| _request | back to summary |
|---|---|
| private final ServletContextRequest _request | |
| _sessionId | back to summary |
|---|---|
| private String _sessionId | |
| PushBuilderImpl | back to summary |
|---|---|
| public PushBuilderImpl(ServletContextRequest request, HttpFields. | |
| addHeader | back to summary |
|---|---|
| public PushBuilder addHeader(String name, String value) Implements jakarta. Doc from jakarta. Add a request header to be used for the push.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Implements jakarta. Doc from jakarta. Return the header of the given name to be used for the push. | |
| getHeaderNames | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Return the set of header to be used for the push.
The returned set is not backed by the | |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements jakarta. Doc from jakarta. Return the method to be used for the push. | |
| getPath | back to summary |
|---|---|
| public String getPath() Implements jakarta. Doc from jakarta. Return the URI path to be used for the push. | |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements jakarta. Doc from jakarta. Return the query string to be used for the push. | |
| getSessionId | back to summary |
|---|---|
| public String getSessionId() Implements jakarta. Doc from jakarta. Return the SessionID to be used for the push. | |
| method | back to summary |
|---|---|
| public PushBuilder method(String method) Implements jakarta. Doc from jakarta. Set the method to be used for the push.
| |
| path | back to summary |
|---|---|
| public PushBuilder path(String path) Implements jakarta. Doc from jakarta. Set the URI path to be used for the push. The path may start with "/" in which case it is treated as an absolute
path, otherwise it is relative to the context path of the associated request. There is no path default and
| |
| push | back to summary |
|---|---|
| public void push() Implements jakarta. Doc from jakarta. Push a resource given the current state of the builder, the method must be non-blocking. Push a resource based on the current state of the PushBuilder. Calling this method does not guarantee the resource will actually be pushed, since it is possible the client can decline acceptance of the pushed resource using the underlying HTTP/2 protocol. If the builder has a session ID, then the pushed request will include the session ID either as a Cookie or as a URI parameter as appropriate. The builders query string is merged with any passed query string. Before returning from this method, the builder has its path, conditional headers (defined in RFC 7232) nulled. All other fields are left as is for possible reuse in another push.
| |
| queryString | back to summary |
|---|---|
| public PushBuilder queryString(String queryString) Implements jakarta. Doc from jakarta. Set the query string to be used for the push.
The query string will be appended to any query String included in a call to
| |
| removeHeader | back to summary |
|---|---|
| public PushBuilder removeHeader(String name) Implements jakarta. Doc from jakarta. Remove the named request header. If the header does not exist, take no action.
| |
| sessionId | back to summary |
|---|---|
| public PushBuilder sessionId(String sessionId) Implements jakarta. Doc from jakarta. Set the SessionID to be used for the push. The session ID will be set in the same way it was on the associated request (ie as a cookie if the associated request used a cookie, or as a url parameter if the associated request used a url parameter). Defaults to the requested session ID or any newly assigned session id from a newly created session.
| |
| setHeader | back to summary |
|---|---|
| public PushBuilder setHeader(String name, String value) Implements jakarta. Doc from jakarta. Set a request header to be used for the push. If the builder has an existing header with the same name, its value is overwritten.
| |