com.belerweb.social.weibo.bean
Enum Display

java.lang.Object
  extended by java.lang.Enum<Display>
      extended by com.belerweb.social.weibo.bean.Display
All Implemented Interfaces:
Serializable, Comparable<Display>

public enum Display
extends Enum<Display>

授权页面的终端类型


Enum Constant Summary
APPONWEIBO
          默认的站内应用授权页,授权后不返回access_token,只刷新站内应用父框架。
CLIENT
          客户端版本授权页面,适用于PC桌面应用。
DEFAULT
          默认的授权页面,适用于web浏览器。
MOBILE
          移动终端的授权页面,适用于支持html5的手机。注:使用此版授权页请用 https://open.weibo.cn/oauth2/authorize 授权接口
WAP
          wap版授权页面,适用于非智能手机。
 
Method Summary
 String toString()
           
 String value()
           
static Display valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Display[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final Display DEFAULT
默认的授权页面,适用于web浏览器。


MOBILE

public static final Display MOBILE
移动终端的授权页面,适用于支持html5的手机。注:使用此版授权页请用 https://open.weibo.cn/oauth2/authorize 授权接口


WAP

public static final Display WAP
wap版授权页面,适用于非智能手机。


CLIENT

public static final Display CLIENT
客户端版本授权页面,适用于PC桌面应用。


APPONWEIBO

public static final Display APPONWEIBO
默认的站内应用授权页,授权后不返回access_token,只刷新站内应用父框架。

Method Detail

values

public static Display[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Display c : Display.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Display valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<Display>


Copyright © 2014. All Rights Reserved.