Class PushBuilderImpl
- java.lang.Object
 - 
- org.eclipse.jetty.server.PushBuilderImpl
 
 
- 
- All Implemented Interfaces:
 PushBuilder
@Deprecated(since="2021-05-27") public class PushBuilderImpl extends java.lang.Object implements PushBuilder
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. 
- 
- 
Constructor Summary
Constructors Constructor Description PushBuilderImpl(Request request, HttpFields fields, java.lang.String method, java.lang.String queryString, java.lang.String sessionId, boolean conditional)Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PushBuilderaddHeader(java.lang.String name, java.lang.String value)Deprecated.Add a header to be used for the push.PushBuilderconditional(boolean conditional)Deprecated.Set if the request is to be conditional.PushBuilderetag(java.lang.String etag)Deprecated.Set the etag to be used for conditional pushes.java.lang.StringgetEtag()Deprecated.java.lang.StringgetHeader(java.lang.String name)Deprecated.java.util.Set<java.lang.String>getHeaderNames()Deprecated.java.lang.StringgetLastModified()Deprecated.java.lang.StringgetMethod()Deprecated.java.lang.StringgetPath()Deprecated.java.lang.StringgetQueryString()Deprecated.java.lang.StringgetSessionId()Deprecated.booleanisConditional()Deprecated.PushBuilderlastModified(java.lang.String lastModified)Deprecated.Set the last modified date to be used for conditional pushes.PushBuildermethod(java.lang.String method)Deprecated.Set the method to be used for the push.PushBuilderpath(java.lang.String path)Deprecated.Set the URI path to be used for the push.voidpush()Deprecated.Push a resource given the current state of the builder, returning immediately without blocking.PushBuilderqueryString(java.lang.String queryString)Deprecated.Set the query string to be used for the push.PushBuilderremoveHeader(java.lang.String name)Deprecated.Remove the named header.PushBuildersessionId(java.lang.String sessionId)Deprecated.Set the SessionID to be used for the push.PushBuildersetHeader(java.lang.String name, java.lang.String value)Deprecated.Set a header to be used for the push. 
 - 
 
- 
- 
Constructor Detail
- 
PushBuilderImpl
public PushBuilderImpl(Request request, HttpFields fields, java.lang.String method, java.lang.String queryString, java.lang.String sessionId, boolean conditional)
Deprecated. 
 - 
 
- 
Method Detail
- 
getMethod
public java.lang.String getMethod()
Deprecated.- Specified by:
 getMethodin interfacePushBuilder
 
- 
method
public PushBuilder method(java.lang.String method)
Deprecated.Description copied from interface:PushBuilderSet the method to be used for the push.
Any non-empty String may be used for the method.
- Specified by:
 methodin interfacePushBuilder- Parameters:
 method- the method to be used for the push.- Returns:
 - this builder.
 
 
- 
getQueryString
public java.lang.String getQueryString()
Deprecated.- Specified by:
 getQueryStringin interfacePushBuilder
 
- 
queryString
public PushBuilder queryString(java.lang.String queryString)
Deprecated.Description copied from interface:PushBuilderSet the query string to be used for the push. Will be appended to any query String included in a call toPushBuilder.path(String). Any duplicate parameters must be preserved. This method should be used instead of a query inPushBuilder.path(String)when multiplePushBuilder.push()calls are to be made with the same query string.- Specified by:
 queryStringin interfacePushBuilder- Parameters:
 queryString- the query string to be used for the push.- Returns:
 - this builder.
 
 
- 
getSessionId
public java.lang.String getSessionId()
Deprecated.- Specified by:
 getSessionIdin interfacePushBuilder
 
- 
sessionId
public PushBuilder sessionId(java.lang.String sessionId)
Deprecated.Description copied from interface:PushBuilderSet 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.- Specified by:
 sessionIdin interfacePushBuilder- Parameters:
 sessionId- the SessionID to be used for the push.- Returns:
 - this builder.
 
 
- 
isConditional
public boolean isConditional()
Deprecated.- Specified by:
 isConditionalin interfacePushBuilder
 
- 
conditional
public PushBuilder conditional(boolean conditional)
Deprecated.Description copied from interface:PushBuilderSet if the request is to be conditional. If the request is conditional, any available values fromPushBuilder.etag(String)orPushBuilder.lastModified(String)will be set in the appropriate headers. If the request is not conditional, then etag and lastModified values are ignored. Defaults to true if the associated request was conditional.- Specified by:
 conditionalin interfacePushBuilder- Parameters:
 conditional- true if the push request is conditional- Returns:
 - this builder.
 
 
- 
getHeaderNames
public java.util.Set<java.lang.String> getHeaderNames()
Deprecated.- Specified by:
 getHeaderNamesin interfacePushBuilder
 
- 
getHeader
public java.lang.String getHeader(java.lang.String name)
Deprecated.- Specified by:
 getHeaderin interfacePushBuilder
 
- 
setHeader
public PushBuilder setHeader(java.lang.String name, java.lang.String value)
Deprecated.Description copied from interface:PushBuilderSet a header to be used for the push. If the builder has an existing header with the same name, its value is overwritten.
- Specified by:
 setHeaderin interfacePushBuilder- Parameters:
 name- The header name to setvalue- The header value to set- Returns:
 - this builder.
 
 
- 
addHeader
public PushBuilder addHeader(java.lang.String name, java.lang.String value)
Deprecated.Description copied from interface:PushBuilderAdd a header to be used for the push.
- Specified by:
 addHeaderin interfacePushBuilder- Parameters:
 name- The header name to addvalue- The header value to add- Returns:
 - this builder.
 
 
- 
removeHeader
public PushBuilder removeHeader(java.lang.String name)
Deprecated.Description copied from interface:PushBuilderRemove the named header. If the header does not exist, take no action.
- Specified by:
 removeHeaderin interfacePushBuilder- Parameters:
 name- The name of the header to remove- Returns:
 - this builder.
 
 
- 
getPath
public java.lang.String getPath()
Deprecated.- Specified by:
 getPathin interfacePushBuilder
 
- 
path
public PushBuilder path(java.lang.String path)
Deprecated.Description copied from interface:PushBuilderSet 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 andpath(String)must be called before every call toPushBuilder.push(). If a query string is present in the argumentpath, its contents must be merged with the contents previously passed toPushBuilder.queryString(java.lang.String), preserving duplicates.- Specified by:
 pathin interfacePushBuilder- Parameters:
 path- the URI path to be used for the push, which may include a query string.- Returns:
 - this builder.
 
 
- 
getEtag
public java.lang.String getEtag()
Deprecated.- Specified by:
 getEtagin interfacePushBuilder
 
- 
etag
public PushBuilder etag(java.lang.String etag)
Deprecated.Description copied from interface:PushBuilderSet the etag to be used for conditional pushes. The etag will be used only ifPushBuilder.isConditional()is true. Defaults to no etag. The value is nulled after every call toPushBuilder.push()- Specified by:
 etagin interfacePushBuilder- Parameters:
 etag- the etag to be used for the push.- Returns:
 - this builder.
 
 
- 
getLastModified
public java.lang.String getLastModified()
Deprecated.- Specified by:
 getLastModifiedin interfacePushBuilder
 
- 
lastModified
public PushBuilder lastModified(java.lang.String lastModified)
Deprecated.Description copied from interface:PushBuilderSet the last modified date to be used for conditional pushes. The last modified date will be used only ifPushBuilder.isConditional()is true. Defaults to no date. The value is nulled after every call toPushBuilder.push()- Specified by:
 lastModifiedin interfacePushBuilder- Parameters:
 lastModified- the last modified date to be used for the push.- Returns:
 - this builder.
 
 
- 
push
public void push()
Deprecated.Description copied from interface:PushBuilderPush a resource given the current state of the builder, returning immediately without blocking.Push a resource based on the current state of the PushBuilder. If
PushBuilder.isConditional()is true and an etag or lastModified value is provided, then an appropriate conditional header will be generated. If both an etag and lastModified value are provided only an If-None-Match header will be generated. 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, etag and lastModified fields nulled. All other fields are left as is for possible reuse in another push.
- Specified by:
 pushin interfacePushBuilder
 
 - 
 
 -