public class PushItem extends Object implements Serializable
Component
to know what can be used in
addition to String
.Constructor and Description |
---|
PushItem()
Creates a push item
|
PushItem(Serializable object)
Creates a push item
|
PushItem(Serializable object,
Map<String,PushItemHeaderValue> headers)
Creates a push item
|
PushItem(Serializable object,
PageParameters pageParameters)
Creates a push item
|
PushItem(Serializable object,
PageParameters pageParameters,
Map<String,PushItemHeaderValue> headers)
Creates a push item
|
Modifier and Type | Method and Description |
---|---|
Map<String,PushItemHeaderValue> |
getHeaders()
Gets the headers to be added to the push response
|
Object |
getObject()
Gets the object which contains the push URL information
|
PageParameters |
getPageParameters()
Gets the page parameters
|
String |
getUrl()
Gets the URL composed within the push header item
|
PushItem |
setHeaders(Map<String,PushItemHeaderValue> headers)
Sets the headers to be added to the push response
|
PushItem |
setObject(Serializable object)
Sets the object which contains the push URL information
|
PushItem |
setPageParameters(PageParameters pageParameters)
Sets the page parameters
|
PushItem |
setUrl(String url)
Sets the URL composed within the push header item
|
public PushItem(Serializable object, PageParameters pageParameters, Map<String,PushItemHeaderValue> headers)
object
- the object to extract the push URL information frompageParameters
- the page parametersheaders
- the headers to be applied to the pushpublic PushItem(Serializable object, Map<String,PushItemHeaderValue> headers)
object
- the object to extract the push URL information fromheaders
- the headers to be applied to the pushpublic PushItem(Serializable object, PageParameters pageParameters)
object
- the object to extract the push URL information frompageParameters
- the page parameterspublic PushItem(Serializable object)
object
- the object to extract the push URL information frompublic PushItem()
public Object getObject()
public PushItem setObject(Serializable object)
object
- the object to extract the push URL information fromorg.apache.wicket.request.cycle.RequestCycle} (urlFor methods)
public PageParameters getPageParameters()
public PushItem setPageParameters(PageParameters pageParameters)
pageParameters
- the page parameterspublic String getUrl()
org.apache.wicket.http2.markup.head.PushHeaderItem#push(List)}
public PushItem setUrl(String url)
url
- the URL used to push the resourceorg.apache.wicket.http2.markup.head.PushHeaderItem#push(List)}
public Map<String,PushItemHeaderValue> getHeaders()
public PushItem setHeaders(Map<String,PushItemHeaderValue> headers)
headers
- the headers to be added to the push responseCopyright © 2006–2022 Apache Software Foundation. All rights reserved.