|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PushConfiguration
Provides method for configuring the push channel.
Method Summary | |
---|---|
com.vaadin.shared.ui.ui.Transport |
getFallbackTransport()
Returns the fallback transport type for push. |
java.lang.String |
getParameter(java.lang.String parameter)
Returns the given parameter, if set. |
java.util.Collection<java.lang.String> |
getParameterNames()
Returns the parameters which have been defined. |
com.vaadin.shared.communication.PushMode |
getPushMode()
Returns the mode of bidirectional ("push") communication that is used. |
com.vaadin.shared.ui.ui.Transport |
getTransport()
Returns the primary transport type for push. |
void |
setFallbackTransport(com.vaadin.shared.ui.ui.Transport fallbackTransport)
Sets the fallback transport type for push. |
void |
setParameter(java.lang.String parameter,
java.lang.String value)
Sets the given parameter. |
void |
setPushMode(com.vaadin.shared.communication.PushMode pushMode)
Sets the mode of bidirectional ("push") communication that should be used. |
void |
setTransport(com.vaadin.shared.ui.ui.Transport transport)
Sets the primary transport type for push. |
Method Detail |
---|
com.vaadin.shared.communication.PushMode getPushMode()
void setPushMode(com.vaadin.shared.communication.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.
java.lang.IllegalArgumentException
- if the argument is null.
java.lang.IllegalStateException
- if push support is not available.com.vaadin.shared.ui.ui.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(com.vaadin.shared.ui.ui.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 typecom.vaadin.shared.ui.ui.Transport 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(com.vaadin.shared.ui.ui.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 typejava.lang.String getParameter(java.lang.String parameter)
This method provides low level access to push parameters and is typically not needed for normal application development.
parameter
- The parameter name
java.util.Collection<java.lang.String> getParameterNames()
void setParameter(java.lang.String parameter, java.lang.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 value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |