Package | Description |
---|---|
com.suse.salt.netapi.client | |
com.suse.salt.netapi.client.impl | |
com.suse.salt.netapi.event | |
com.suse.salt.netapi.exception | |
com.suse.salt.netapi.utils |
Modifier and Type | Method and Description |
---|---|
WebSocketEventStream |
SaltClient.events(Token token,
long sessionIdleTimeout,
long idleTimeout,
int maxMsgSize,
EventListener... listeners)
Returns a WebSocket @ClientEndpoint annotated object connected
to the /ws ServerEndpoint.
|
Modifier and Type | Method and Description |
---|---|
private SaltException |
HttpAsyncClientImpl.createSaltException(int statusCode)
Create the appropriate exception for the given HTTP status code.
|
Modifier and Type | Method and Description |
---|---|
private void |
WebSocketEventStream.initializeStream(java.net.URI uri,
Token token,
long sessionIdleTimeout,
long idleTimeout)
Connect the WebSocket to the server pointing to /ws/{token} to receive events.
|
Constructor and Description |
---|
WebSocketEventStream(java.net.URI uri,
Token token,
long sessionIdleTimeout,
long idleTimeout,
int maxMsgSize,
EventListener... listeners)
Constructor used to create an event stream: open a websocket connection and start
event processing.
|
Modifier and Type | Class and Description |
---|---|
class |
MessageTooBigException
Exception to be thrown in case of a websocket message exceeding the configurable
maximum message length.
|
class |
SaltUserUnauthorizedException
Exception for when a user is logged in but not allowed
access to the requested resource.
|
Modifier and Type | Method and Description |
---|---|
R |
FunctionE.apply(T t) |