Package io.mats3.matssocket
Enum Class MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution
java.lang.Object
java.lang.Enum<MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution>
io.mats3.matssocket.MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution
- All Implemented Interfaces:
Serializable
,Comparable<MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution>
,Constable
- Enclosing class:
- MatsSocketServer.MatsSocketEnvelopeWithMetaDto
public static enum MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution
extends Enum<MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution>
Only used for when the MatsSocketEnvelopeDto is exposed via the MatsSocket API - contains "meta-meta"
about the processing of the envelope
How a Client-to-Server SEND or REQUEST was handled wrt. MatsSocket actions. For all these actions, the
incoming envelope is run through a piece of Java code - so it is possible that it might also have mined a
Bitcoin or something else entirely; These resolutions are in terms of response options for the
IncomingHandler.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe IncomingHandler sent NACK ("Negative Acknowledgement"), signifying that it did not want to process the message, typically because the authenticated user was not allowed to perform the requested action (i.e.The IncomingHandler raised an Exception.The IncomingHandler forwarded the SEND or REQUEST to a Mats Endpoint.IncomingHandler did no action wrt.For a REQUEST: The IncomingHandler "insta-settled" the request with a Reject.For a REQUEST: The IncomingHandler "insta-settled" the request with a Resolve. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXCEPTION
The IncomingHandler raised an Exception. This results in NACK with the 'desc' field set, containing the Exception class and message. -
NO_ACTION
IncomingHandler did no action wrt. MatsSocket options - this is allowed for SEND, but not for REQUEST. -
DENY
The IncomingHandler sent NACK ("Negative Acknowledgement"), signifying that it did not want to process the message, typically because the authenticated user was not allowed to perform the requested action (i.e. authorization of the action vs. the authenticated user (Principal) failed), and no further action wrt. MatsSocket options.MatsSocketServer.MatsSocketEndpointIncomingContext.deny()
was invoked. -
RESOLVE
For a REQUEST: The IncomingHandler "insta-settled" the request with a Resolve.MatsSocketServer.MatsSocketEndpointIncomingContext.resolve(Object)
was invoked. -
REJECT
For a REQUEST: The IncomingHandler "insta-settled" the request with a Reject.MatsSocketServer.MatsSocketEndpointIncomingContext.reject(Object)
was invoked. -
FORWARD
The IncomingHandler forwarded the SEND or REQUEST to a Mats Endpoint.MatsSocketServer.MatsSocketEndpointIncomingContext.forward(String, Object, InitiateLambda)
or its ilk was invoked.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static MatsSocketServer.MatsSocketEnvelopeWithMetaDto.IncomingResolution valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-