com.douban.common

Req

Related Doc: package common

object Req

Copyright by Joseph J.C. Tang
Email: [email protected]

Version

1.0

Since

12/21/12 8:38 PM

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Req
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val DELETE: String

  5. val ENCODING: String

  6. val GET: String

  7. val POST: String

  8. val PUT: String

  9. var accessToken: String

  10. var apiKey: String

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def debug(a: Any): Unit

    Annotations
    @elidable( FINE )
  14. def delete(url: String): Boolean

  15. val emptyJSON: String

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. lazy val g: Gson

  20. def get[RESULT](url: String, secured: Boolean = false)(implicit arg0: Manifest[RESULT]): RESULT

    RESULT

    返回结果类型

    secured

    是否使用https,默认不用

    returns

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def init(accessToken: String, apiKey: String = Auth.api_key, scope: String = ""): Req.type

  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def parseJSON[R](c: HttpURLConnection)(implicit arg0: ClassTag[R]): R

    解析返回数据,出错则抛出异常并封装进 Error

    解析返回数据,出错则抛出异常并封装进 Error

    R

    返回值类型

    returns

    See also

    com.douban.common.Error

  29. val persistenceTimeout: Int

  30. def post[RESULT](url: String, request: Bean, withResult: Boolean = true)(implicit arg0: Manifest[RESULT]): Option[RESULT]

    RESULT

    返回的类型。不读取数据时返回None为成功,抛出异常为读取数据不成功

    request

    参数Bean

    withResult

    是否读取返回数据,默认读取 ,不读取数据时返回None为成功

    returns

  31. def put[RESULT](url: String, request: Bean, withResult: Boolean = true)(implicit arg0: Manifest[RESULT]): Option[RESULT]

    request

    参数Bean

    withResult

    是否读取返回数据,默认读取,不读取数据时返回null为成功

    returns

    RESULT put成功后的数据,不读取数据时返回null为成功,,抛出异常为读取数据不成功

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. val timeout: Int

  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped