001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.camel.component.gae.login;
018
019 /**
020 * Container for login request and response data.
021 */
022 public class GLoginData {
023
024 private String hostName;
025
026 private String clientName;
027
028 private String userName;
029
030 private String password;
031
032 private int devPort;
033
034 private boolean devAdmin;
035
036 private boolean devMode;
037
038 private String authenticationToken;
039
040 private String authorizationCookie;
041
042 /**
043 * @see GLoginEndpoint#getHostName()
044 * @see GLoginBinding#GLOGIN_HOST_NAME
045 */
046 public String getHostName() {
047 return hostName;
048 }
049
050 public void setHostName(String hostName) {
051 this.hostName = hostName;
052 }
053
054 public String getClientName() {
055 return clientName;
056 }
057
058 public void setClientName(String clientName) {
059 this.clientName = clientName;
060 }
061
062 /**
063 * @see GLoginBinding#GLOGIN_USER_NAME
064 */
065 public String getUserName() {
066 return userName;
067 }
068
069 public void setUserName(String userName) {
070 this.userName = userName;
071 }
072
073 /**
074 * @see GLoginBinding#GLOGIN_PASSWORD
075 */
076 public String getPassword() {
077 return password;
078 }
079
080 public void setPassword(String password) {
081 this.password = password;
082 }
083
084 /**
085 * @see GLoginEndpoint#getDevPort()
086 */
087 public int getDevPort() {
088 return devPort;
089 }
090
091 public void setDevPort(int devPort) {
092 this.devPort = devPort;
093 }
094
095 public boolean isDevAdmin() {
096 return devAdmin;
097 }
098
099 public void setDevAdmin(boolean devAdmin) {
100 this.devAdmin = devAdmin;
101 }
102
103 public boolean isDevMode() {
104 return devMode;
105 }
106
107 public void setDevMode(boolean devMode) {
108 this.devMode = devMode;
109 }
110
111 public String getAuthenticationToken() {
112 return authenticationToken;
113 }
114
115 /**
116 * @see GLoginBinding#GLOGIN_TOKEN
117 */
118 public void setAuthenticationToken(String authenticationToken) {
119 this.authenticationToken = authenticationToken;
120 }
121
122 public String getAuthorizationCookie() {
123 return authorizationCookie;
124 }
125
126 /**
127 * @see GLoginBinding#GLOGIN_COOKIE
128 */
129 public void setAuthorizationCookie(String authorizationCookie) {
130 this.authorizationCookie = authorizationCookie;
131 }
132
133 }