View Javadoc

1   /*
2   Copyright 2011-2014 AGH-UST, http://www.agh.edu.pl
3   Faculty of Computer Science, Electronics and Telecommunications
4   Department of Computer Science 
5   
6   See the NOTICE file distributed with this work for additional
7   information regarding copyright ownership
8   
9   Licensed under the Apache License, Version 2.0 (the "License");
10  you may not use this file except in compliance with the License.
11  You may obtain a copy of the License at
12  
13    http://www.apache.org/licenses/LICENSE-2.0
14  
15  Unless required by applicable law or agreed to in writing, software
16  distributed under the License is distributed on an "AS IS" BASIS,
17  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  See the License for the specific language governing permissions and
19  limitations under the License.
20  */
21  package org.universAAL.ri.gateway.communicator.service.impl;
22  
23  /**
24   * Type for MessageWrapper in order for the servlet to distinguish the message
25   * purpose.
26   * 
27   * @author skallz
28   * 
29   */
30  public enum MessageType {
31      /**
32       * standard synchronous request; the response goes back in the same
33       * connection.
34       */
35      ServiceRequest,
36      /**
37       * will not send the reply.
38       */
39      ServiceRequestAsync,
40      /**
41       * a response for an asynchronous request.
42       */
43      ServiceResponseAsync,
44      /**
45       * a context event.
46       */
47      Context,
48      /**
49       * an UI request.
50       */
51      UI,
52  
53      /**
54       * an UI response.
55       */
56      UIResponse, ImportRequest, ImportRemoval, ImportResponse, ImportRefresh,
57      
58      Error,
59      
60      ServiceCall;
61      
62      
63  }