View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.service.api.common;
7   
8   /***
9    * The Class AbstractServiceRequest.
10   */
11  public abstract class AbstractServiceRequest extends AbstractServiceMessage
12          implements ServiceRequest {
13  
14      /*** The Constant serialVersionUID. */
15      private static final long serialVersionUID = 1L;
16  
17      /*** The user session id. */
18      private final Long userSessionId;
19  
20      /***
21       * Instantiates a new abstract service request.
22       *
23       * @param userSessionId the user session id
24       */
25      public AbstractServiceRequest(final Long userSessionId) {
26          super();
27          this.userSessionId = userSessionId;
28      }
29  
30      /***
31       * Gets the user session id.
32       *
33       * @return the user session id
34       */
35      public final Long getUserSessionId() {
36          return userSessionId;
37      }
38  }