001/**
002 * Copyright 2015 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.users.twitter;
017
018/**
019 * Definitions for users/twitter package.
020 *
021 */
022public final class Definitions {
023  /* headers */
024  /** oauth http authorization header */
025  public static final String HEADER_OAUTH_AUTHORIZATION = "Authorization";
026  
027  /* local methods */
028  /** local service method declaration */
029  public static final String METHOD_LOGIN = "login";
030  /** local service method declaration */
031  public static final String METHOD_OAUTH_AUTHORIZATION_REDIRECT = "authorize";
032  /** local service method declaration */
033  public static final String METHOD_OAUTH_AUTHORIZE_CALLBACK = "oAuthAuthorizeCallback";
034  /** local service method declaration */
035  public static final String METHOD_OAUTH_LOGIN_CALLBACK = "oAuthLoginCallback";
036  /** local service method declaration */
037  public static final String METHOD_OAUTH_REGISTER_CALLBACK = "oAuthRegisterCallback";
038  /** local service method declaration */
039  public static final String METHOD_UNAUTHORIZE = "unauthorize";
040  
041  /* remote methods */
042  /** remote service method declaration */
043  public static final String METHOD_TWITTER_ACCESS_TOKEN = "access_token";
044  /** remote service method declaration */
045  public static final String METHOD_TWITTER_AUTHENTICATE = "authenticate";
046  /** remote service method declaration */
047  public static final String METHOD_TWITTER_AUTHORIZE = "authorize";
048  /** remote service method declaration */
049  public static final String METHOD_TWITTER_REQUEST_TOKEN = "request_token";
050  
051  /* parameters */
052  /** method parameter declaration */
053  public static final String PARAMETER_OAUTH_CALLBACK = "oauth_callback";
054  /** method parameter declaration */
055  public static final String PARAMETER_OAUTH_CALLBACK_CONFIRMED = "oauth_callback_confirmed";
056  /** method parameter declaration */
057  public static final String PARAMETER_OAUTH_CONSUMER_KEY = "oauth_consumer_key";
058  /** method parameter declaration */
059  public static final String PARAMETER_OAUTH_NONCE = "oauth_nonce";
060  /** method parameter declaration */
061  public static final String PARAMETER_OAUTH_SIGNATURE = "oauth_signature";
062  /** method parameter declaration */
063  public static final String PARAMETER_OAUTH_SIGNATURE_METHOD = "oauth_signature_method";
064  /** method parameter declaration */
065  public static final String PARAMETER_OAUTH_TIMESTAMP = "oauth_timestamp";
066  /** method parameter declaration */
067  public static final String PARAMETER_OAUTH_TOKEN = "oauth_token";
068  /** method parameter declaration */
069  public static final String PARAMETER_OAUTH_TOKEN_SECRET = "oauth_token_secret";
070  /** method parameter declaration */
071  public static final String PARAMETER_OAUTH_VERIFIER = "oauth_verifier";
072  /** method parameter declaration */
073  public static final String PARAMETER_OAUTH_VERSION = "oauth_version";
074  /** method parameter declaration */
075  public static final String PARAMETER_TWITTER_INCLUDE_ENTITIES = "include_entities";
076  /** method parameter declaration */
077  public static final String PARAMETER_TWITTER_REDIRECT_URI = "redirect_uri";
078  /** method parameter declaration */
079  public static final String PARAMETER_TWITTER_SKIP_STATUS = "skip_status";
080  
081  /* services */
082  /** service name declaration */
083  public static final String SERVICE_USERS_TWITTER = "twitter";
084  
085  /**
086   * 
087   */
088  private Definitions(){
089    // nothing needed
090  }
091}