public interface PushConfiguration extends Serializable
Modifier and Type | Method and Description |
---|---|
Transport |
getFallbackTransport()
Returns the fallback transport type for push.
|
String |
getParameter(String parameter)
Returns the given parameter, if set.
|
Collection<String> |
getParameterNames()
Returns the parameters which have been defined.
|
PushMode |
getPushMode()
Returns the mode of bidirectional ("push") communication that is used.
|
String |
getPushUrl()
Returns the URL to use for push requests.
|
Transport |
getTransport()
Returns the primary transport type for push.
|
void |
setFallbackTransport(Transport fallbackTransport)
Sets the fallback transport type for push.
|
void |
setParameter(String parameter,
String value)
Sets the given parameter.
|
void |
setPushConnectionFactory(PushConnectionFactory factory)
Sets the factory that will be used to create new instances of
PushConnection . |
void |
setPushMode(PushMode pushMode)
Sets the mode of bidirectional ("push") communication that should be
used.
|
void |
setPushUrl(String pushUrl)
Sets the URL to use for push requests.
|
void |
setTransport(Transport transport)
Sets the primary transport type for push.
|
PushMode getPushMode()
void setPushMode(PushMode pushMode)
Add-on developers should note that this method is only meant for the application developer. An add-on should not set the push mode directly, rather instruct the user to set it.
pushMode
- The push mode to use.IllegalArgumentException
- if the argument is null.IllegalStateException
- if push support is not available.Transport getTransport()
Note that if you set the transport type using
setParameter(String, String)
to an unsupported type this method
will return null. Supported types are defined by Transport
.
void setTransport(Transport transport)
Note that the new transport type will not be used until the push channel is disconnected and reconnected if already active.
transport
- The primary transport typeTransport getFallbackTransport()
Note that if you set the transport type using
setParameter(String, String)
to an unsupported type this method
will return null. Supported types are defined by Transport
.
void setFallbackTransport(Transport fallbackTransport)
Note that the new transport type will not be used until the push channel is disconnected and reconnected if already active.
fallbackTransport
- The fallback transport typeString getParameter(String parameter)
This method provides low level access to push parameters and is typically not needed for normal application development.
parameter
- The parameter nameCollection<String> getParameterNames()
void setParameter(String parameter, String value)
This method provides low level access to push parameters and is typically not needed for normal application development.
parameter
- The parameter namevalue
- The valuevoid setPushUrl(String pushUrl)
This is only used when overriding the URL to use. Setting this to null (the default) will use the default URL.
pushUrl
- The push URL to useString getPushUrl()
This is only used when overriding the URL to use. Returns null (the default) when the default URL is used.
void setPushConnectionFactory(PushConnectionFactory factory)
PushConnection
.factory
- the factory that will be used to create new instances of PushConnection
Copyright © 2023. All rights reserved.