com.google.appengine.api.users.dev
Class LocalUserService
- java.lang.Object
-
- AbstractLocalRpcService
-
- com.google.appengine.api.users.dev.LocalUserService
-
public final class LocalUserService extends AbstractLocalRpcServicecreates URLs that point toLocalLoginServletandLocalLogoutServletwhen used within the Development AppServer environment. There is a known discrepancy between this implementation and the production implementation. The production version will throw aApiProxy.ApplicationExceptionwithapplicationErrorset toUserServicePb.UserServiceError.ErrorCode#REDIRECT_URL_TOO_LONGwhen the url passed tocreateLoginURL(Status, CreateLoginURLRequest)orcreateLogoutURL(Status, CreateLogoutURLRequest)is too long. This implementation does not perform this check and therefore never returns this error.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringOAUTH_AUTH_DOMAIN_PROPERTYstatic java.lang.StringOAUTH_CONSUMER_KEY_PROPERTYstatic java.lang.StringOAUTH_EMAIL_PROPERTYstatic java.lang.StringOAUTH_IS_ADMIN_PROPERTYstatic java.lang.StringOAUTH_USER_ID_PROPERTYstatic java.lang.StringPACKAGEThe package name for this service.
-
Constructor Summary
Constructors Constructor and Description LocalUserService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CreateLoginURLResponsecreateLoginURL(Status status, CreateLoginURLRequest request)CreateLogoutURLResponsecreateLogoutURL(Status status, CreateLogoutURLRequest request)GetOAuthUserResponsegetOAuthUser(Status status, GetOAuthUserRequest request)java.lang.StringgetPackage()voidinit(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)voidstart()voidstop()
-
-
-
Field Detail
-
OAUTH_CONSUMER_KEY_PROPERTY
public static final java.lang.String OAUTH_CONSUMER_KEY_PROPERTY
- See Also:
- Constant Field Values
-
OAUTH_EMAIL_PROPERTY
public static final java.lang.String OAUTH_EMAIL_PROPERTY
- See Also:
- Constant Field Values
-
OAUTH_USER_ID_PROPERTY
public static final java.lang.String OAUTH_USER_ID_PROPERTY
- See Also:
- Constant Field Values
-
OAUTH_AUTH_DOMAIN_PROPERTY
public static final java.lang.String OAUTH_AUTH_DOMAIN_PROPERTY
- See Also:
- Constant Field Values
-
OAUTH_IS_ADMIN_PROPERTY
public static final java.lang.String OAUTH_IS_ADMIN_PROPERTY
- See Also:
- Constant Field Values
-
PACKAGE
public static final java.lang.String PACKAGE
The package name for this service.- See Also:
- Constant Field Values
-
-
Method Detail
-
createLoginURL
public CreateLoginURLResponse createLoginURL(Status status, CreateLoginURLRequest request)
-
createLogoutURL
public CreateLogoutURLResponse createLogoutURL(Status status, CreateLogoutURLRequest request)
-
getOAuthUser
public GetOAuthUserResponse getOAuthUser(Status status, GetOAuthUserRequest request)
-
getPackage
public java.lang.String getPackage()
-
init
public void init(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)
-
start
public void start()
-
stop
public void stop()
-
-