@Internal public class WebSocketStateBinderRegistry extends java.lang.Object implements ArgumentBinderRegistry<WebSocketState>
WebSocketState
.Constructor and Description |
---|
WebSocketStateBinderRegistry(ArgumentBinderRegistry<HttpRequest<?>> requestBinderRegistry)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T,ST> void |
addRequestArgumentBinder(ArgumentBinder<T,ST> binder)
Adds a request argument binder to the registry.
|
<T> java.util.Optional<ArgumentBinder<T,WebSocketState>> |
findArgumentBinder(Argument<T> argument,
WebSocketState source)
Locate an
ArgumentBinder for the given argument and source type. |
public WebSocketStateBinderRegistry(ArgumentBinderRegistry<HttpRequest<?>> requestBinderRegistry)
requestBinderRegistry
- The request binder registrypublic <T,ST> void addRequestArgumentBinder(ArgumentBinder<T,ST> binder)
ArgumentBinderRegistry
addRequestArgumentBinder
in interface ArgumentBinderRegistry<WebSocketState>
T
- The argument typeST
- The source typebinder
- The binderpublic <T> java.util.Optional<ArgumentBinder<T,WebSocketState>> findArgumentBinder(Argument<T> argument, WebSocketState source)
ArgumentBinderRegistry
ArgumentBinder
for the given argument and source type.findArgumentBinder
in interface ArgumentBinderRegistry<WebSocketState>
T
- The argument typeargument
- The argumentsource
- The sourceOptional
of ArgumentBinder