Interface PushConfiguration
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PushConfigurationMap
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fallback transport type for push.getParameter
(String parameter) Returns the given parameter, if set.Returns the parameters which have been defined.Returns the mode of bidirectional ("push") communication that is used.Returns the servlet mapping to use for push requests.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
Sets the factory that will be used to create new instances ofPushConnection
.void
setPushMode
(PushMode pushMode) Sets the mode of bidirectional ("push") communication that should be used.void
setPushServletMapping
(String pushServletMapping) Sets the servlet mapping to use for push requests.void
setTransport
(Transport transport) Sets the primary transport type for push.
-
Method Details
-
getPushMode
PushMode getPushMode()Returns the mode of bidirectional ("push") communication that is used.- Returns:
- The push mode.
-
setPushServletMapping
Sets the servlet mapping to use for push requests.This is only used when overriding the servlet mapping to use. Setting this to null (the default) will use the default URL.
- Parameters:
pushServletMapping
- The servlet mapping to use for push
-
getPushServletMapping
String getPushServletMapping()Returns the servlet mapping to use for push requests.This is only used when overriding the servlet mapping to use. Returns null (the default) when the default URL is used.
- Returns:
- the servlet mapping to use for push requests, or null to use to default
-
getTransport
Transport getTransport()Returns the primary transport type for push.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 byTransport
.- Returns:
- The primary transport type
-
getFallbackTransport
Transport getFallbackTransport()Returns the fallback transport type for push.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 byTransport
.- Returns:
- The fallback transport type
-
getParameter
Returns the given parameter, if set.This method provides low level access to push parameters and is typically not needed for normal application development.
- Parameters:
parameter
- The parameter name- Returns:
- The parameter value or null if not set
-
getParameterNames
Collection<String> getParameterNames()Returns the parameters which have been defined.- Returns:
- A collection of parameter names
-
setParameter
Sets the given parameter.This method provides low level access to push parameters and is typically not needed for normal application development.
- Parameters:
parameter
- The parameter namevalue
- The value
-
setPushConnectionFactory
Sets the factory that will be used to create new instances ofPushConnection
.- Parameters:
factory
- the factory that will be used to create new instances ofPushConnection
-