View Javadoc
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  
21  import com.hack23.cia.model.internal.application.system.impl.ApplicationSessionType;
22  import com.hack23.cia.service.api.action.common.AbstractRequest;
23  
24  /**
25   * The Class CreateApplicationSessionRequest.
26   */
27  public final class CreateApplicationSessionRequest extends AbstractRequest {
28  
29  	/** The Constant serialVersionUID. */
30  	private static final long serialVersionUID = 1L;
31  
32  	/** The session id. */
33  	private String sessionId;
34  
35  	/** The locale. */
36  	private String locale;
37  
38  	/** The operating system. */
39  	private String operatingSystem;
40  
41  	/** The ip information. */
42  	private String ipInformation;
43  
44  	/** The user agent information. */
45  	private String userAgentInformation;
46  
47  	/** The session type. */
48  	private ApplicationSessionType sessionType;
49  
50  	/**
51  	 * Instantiates a new creates the application session request.
52  	 */
53  	public CreateApplicationSessionRequest() {
54  		super();
55  	}
56  
57  	/**
58  	 * Gets the ip information.
59  	 *
60  	 * @return the ip information
61  	 */
62  	public String getIpInformation() {
63  		return ipInformation;
64  	}
65  
66  	/**
67  	 * Gets the session type.
68  	 *
69  	 * @return the session type
70  	 */
71  	public ApplicationSessionType getSessionType() {
72  		return sessionType;
73  	}
74  
75  	/**
76  	 * Gets the user agent information.
77  	 *
78  	 * @return the user agent information
79  	 */
80  	public String getUserAgentInformation() {
81  		return userAgentInformation;
82  	}
83  
84  	/**
85  	 * Sets the ip information.
86  	 *
87  	 * @param ipInformation
88  	 *            the new ip information
89  	 */
90  	public void setIpInformation(final String ipInformation) {
91  		this.ipInformation = ipInformation;
92  	}
93  
94  	/**
95  	 * Sets the session type.
96  	 *
97  	 * @param sessionType
98  	 *            the new session type
99  	 */
100 	public void setSessionType(final ApplicationSessionType sessionType) {
101 		this.sessionType = sessionType;
102 	}
103 
104 	/**
105 	 * Sets the user agent information.
106 	 *
107 	 * @param userAgentInformation
108 	 *            the new user agent information
109 	 */
110 	public void setUserAgentInformation(final String userAgentInformation) {
111 		this.userAgentInformation = userAgentInformation;
112 	}
113 
114 	/**
115 	 * Gets the session id.
116 	 *
117 	 * @return the session id
118 	 */
119 	public String getSessionId() {
120 		return sessionId;
121 	}
122 
123 	/**
124 	 * Sets the session id.
125 	 *
126 	 * @param sessionId
127 	 *            the new session id
128 	 */
129 	public void setSessionId(final String sessionId) {
130 		this.sessionId = sessionId;
131 	}
132 
133 	/**
134 	 * Gets the locale.
135 	 *
136 	 * @return the locale
137 	 */
138 	public String getLocale() {
139 		return locale;
140 	}
141 
142 	/**
143 	 * Sets the locale.
144 	 *
145 	 * @param locale
146 	 *            the new locale
147 	 */
148 	public void setLocale(final String locale) {
149 		this.locale = locale;
150 	}
151 
152 	/**
153 	 * Gets the operating system.
154 	 *
155 	 * @return the operating system
156 	 */
157 	public String getOperatingSystem() {
158 		return operatingSystem;
159 	}
160 
161 	/**
162 	 * Sets the operating system.
163 	 *
164 	 * @param operatingSystem
165 	 *            the new operating system
166 	 */
167 	public void setOperatingSystem(final String operatingSystem) {
168 		this.operatingSystem = operatingSystem;
169 	}
170 }