CreateApplicationSessionRequest.java

  1. /*
  2.  * Copyright 2010 James Pether Sörling
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *   http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  *
  16.  *  $Id$
  17.  *  $HeadURL$
  18. */
  19. package com.hack23.cia.service.api.action.application;

  20. import com.hack23.cia.model.internal.application.system.impl.ApplicationSessionType;
  21. import com.hack23.cia.service.api.action.common.AbstractRequest;

  22. /**
  23.  * The Class CreateApplicationSessionRequest.
  24.  */
  25. public final class CreateApplicationSessionRequest extends AbstractRequest {

  26.     /** The Constant serialVersionUID. */
  27.     private static final long serialVersionUID = 1L;

  28.     /** The session id. */
  29.     private String sessionId;

  30.     /** The locale. */
  31.     private String locale;

  32.     /** The operating system. */
  33.     private String operatingSystem;

  34.     /** The ip information. */
  35.     private String ipInformation;

  36.     /** The user agent information. */
  37.     private String userAgentInformation;

  38.     /** The session type. */
  39.     private ApplicationSessionType sessionType;

  40.     /**
  41.      * Instantiates a new creates the application session request.
  42.      */
  43.     public CreateApplicationSessionRequest() {
  44.         super();
  45.     }

  46.     /**
  47.      * Gets the ip information.
  48.      *
  49.      * @return the ip information
  50.      */
  51.     public String getIpInformation() {
  52.         return ipInformation;
  53.     }

  54.     /**
  55.      * Gets the session type.
  56.      *
  57.      * @return the session type
  58.      */
  59.     public ApplicationSessionType getSessionType() {
  60.         return sessionType;
  61.     }

  62.     /**
  63.      * Gets the user agent information.
  64.      *
  65.      * @return the user agent information
  66.      */
  67.     public String getUserAgentInformation() {
  68.         return userAgentInformation;
  69.     }

  70.     /**
  71.      * Sets the ip information.
  72.      *
  73.      * @param ipInformation
  74.      *            the new ip information
  75.      */
  76.     public void setIpInformation(final String ipInformation) {
  77.         this.ipInformation = ipInformation;
  78.     }

  79.     /**
  80.      * Sets the session type.
  81.      *
  82.      * @param sessionType
  83.      *            the new session type
  84.      */
  85.     public void setSessionType(final ApplicationSessionType sessionType) {
  86.         this.sessionType = sessionType;
  87.     }

  88.     /**
  89.      * Sets the user agent information.
  90.      *
  91.      * @param userAgentInformation
  92.      *            the new user agent information
  93.      */
  94.     public void setUserAgentInformation(final String userAgentInformation) {
  95.         this.userAgentInformation = userAgentInformation;
  96.     }

  97.     /**
  98.      * Gets the session id.
  99.      *
  100.      * @return the session id
  101.      */
  102.     public String getSessionId() {
  103.         return sessionId;
  104.     }

  105.     /**
  106.      * Sets the session id.
  107.      *
  108.      * @param sessionId
  109.      *            the new session id
  110.      */
  111.     public void setSessionId(final String sessionId) {
  112.         this.sessionId = sessionId;
  113.     }

  114.     /**
  115.      * Gets the locale.
  116.      *
  117.      * @return the locale
  118.      */
  119.     public String getLocale() {
  120.         return locale;
  121.     }

  122.     /**
  123.      * Sets the locale.
  124.      *
  125.      * @param locale
  126.      *            the new locale
  127.      */
  128.     public void setLocale(final String locale) {
  129.         this.locale = locale;
  130.     }

  131.     /**
  132.      * Gets the operating system.
  133.      *
  134.      * @return the operating system
  135.      */
  136.     public String getOperatingSystem() {
  137.         return operatingSystem;
  138.     }

  139.     /**
  140.      * Sets the operating system.
  141.      *
  142.      * @param operatingSystem
  143.      *            the new operating system
  144.      */
  145.     public void setOperatingSystem(final String operatingSystem) {
  146.         this.operatingSystem = operatingSystem;
  147.     }
  148. }