public class WampConfigurerAdapter extends Object implements WampConfigurer
WampConfigurer interface. A @Configuration
class can implement the WampConfigurer interface or subclass this class.| Constructor and Description |
|---|
WampConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationHandler |
authenticationHandler()
Configures an implementation of the
AuthenticationHandler interface. |
boolean |
authenticationRequired()
When this method returns true, all calls to a wamp server endpoint (methods
annotated with
WampCallListener, WampPublishListener,
WampSubscribeListener or WampUnsubscribeListener) have to be
authenticated. |
AuthenticationSecretProvider |
authenticationSecretProvider()
Configures an implementation of the secret provider interface
AuthenticationSecretProvider for authentication. |
void |
configureWampWebsocketHandler(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration reg)
Doing some additional configuration of the WampWebsocketHandler registration.
|
org.springframework.core.convert.ConversionService |
conversionService()
Configures a ConversionService that is used by the
WampMessageBodyMethodArgumentResolver |
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper()
Configures Jackson's
ObjectMapper instance. |
Executor |
outboundExecutor()
Configures an
Executor which is used for sending outbound WAMP messages. |
String |
wampEndpointPath()
Configures the endpoint path where the WebSocket WAMP handler is listening for
requests.
|
public Executor outboundExecutor()
WampConfigurerExecutor which is used for sending outbound WAMP messages.outboundExecutor in interface WampConfigurerpublic String wampEndpointPath()
WampConfigurerwampEndpointPath in interface WampConfigurerpublic com.fasterxml.jackson.databind.ObjectMapper objectMapper()
WampConfigurerObjectMapper instance. This mapper is used for
serializing and deserializing wamp messages.objectMapper in interface WampConfigurerpublic org.springframework.core.convert.ConversionService conversionService()
WampConfigurerWampMessageBodyMethodArgumentResolverconversionService in interface WampConfigurerpublic void configureWampWebsocketHandler(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration reg)
WampConfigurerconfigureWampWebsocketHandler in interface WampConfigurerpublic AuthenticationSecretProvider authenticationSecretProvider()
WampConfigurerAuthenticationSecretProvider for authentication. If not configured the
library creates and uses an instance of the class
NoOpAuthenticationSecretProvider.authenticationSecretProvider in interface WampConfigurerpublic AuthenticationHandler authenticationHandler()
WampConfigurerAuthenticationHandler interface. If not
configured the library creates and uses an instance of the class
DefaultAuthenticationHandler.authenticationHandler in interface WampConfigurerpublic boolean authenticationRequired()
WampConfigurerWampCallListener, WampPublishListener,
WampSubscribeListener or WampUnsubscribeListener) have to be
authenticated.authenticationRequired in interface WampConfigurerCopyright © 2014–2015. All rights reserved.