org.universAAL.ri.gateway.communicator.service.impl
Enum MessageType

Package class diagram package MessageType
java.lang.Object
  extended by java.lang.Enum<MessageType>
      extended by org.universAAL.ri.gateway.communicator.service.impl.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>

public enum MessageType
extends Enum<MessageType>

Type for MessageWrapper in order for the servlet to distinguish the message purpose.

Author:
skallz

Enum Constant Summary
Context
          a context event.
Error
           
ImportRefresh
           
ImportRemoval
           
ImportRequest
           
ImportResponse
           
ServiceCall
           
ServiceRequest
          standard synchronous request; the response goes back in the same connection.
ServiceRequestAsync
          will not send the reply.
ServiceResponseAsync
          a response for an asynchronous request.
UI
          an UI request.
UIResponse
          an UI response.
 
Method Summary
static MessageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MessageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ServiceRequest

public static final MessageType ServiceRequest
standard synchronous request; the response goes back in the same connection.


ServiceRequestAsync

public static final MessageType ServiceRequestAsync
will not send the reply.


ServiceResponseAsync

public static final MessageType ServiceResponseAsync
a response for an asynchronous request.


Context

public static final MessageType Context
a context event.


UI

public static final MessageType UI
an UI request.


UIResponse

public static final MessageType UIResponse
an UI response.


ImportRequest

public static final MessageType ImportRequest

ImportRemoval

public static final MessageType ImportRemoval

ImportResponse

public static final MessageType ImportResponse

ImportRefresh

public static final MessageType ImportRefresh

Error

public static final MessageType Error

ServiceCall

public static final MessageType ServiceCall
Method Detail

values

public static MessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MessageType c : MessageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014 universAAL Consortium. All Rights Reserved.