com.hunorkovacs.koauth.domain

KoauthRequest

object KoauthRequest

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KoauthRequest
  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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def apply(method: String, url: String, authorizationHeader: Option[String], body: Option[String]): KoauthRequest

    Creates a KoauthRequest object based on the HTTP method, the URL and the, the Authorization header, HTTP body if application/x-www-form-urlencoded is the Content-Type.

    Creates a KoauthRequest object based on the HTTP method, the URL and the, the Authorization header, HTTP body if application/x-www-form-urlencoded is the Content-Type.

    Is able to parse both URL and body and Authorization header and extract parameters.

    method

    HTTP method e.g. GET

    url

    URL e.g. https://api.twitter.com/1.1/statuses/user_timeline.json?count=1&include_rts=1#noonecares

    authorizationHeader

    header named Authorization e.g. OAuth oauth_callback="...", oauth_consumer_key="...

    body

    the parameters in the body if the Content-Type is application/x-www-form-urlencoded e.g status=true&day=today

    returns

    A built up KoauthRequest object

  7. def apply(method: String, url: String, body: Option[String]): KoauthRequest

    Creates a KoauthRequest object based on the HTTP method, the URL and the, HTTP body if application/x-www-form-urlencoded is the Content-Type.

    Creates a KoauthRequest object based on the HTTP method, the URL and the, HTTP body if application/x-www-form-urlencoded is the Content-Type.

    Is able to parse both URL and body, and extract parameters.

    method

    HTTP method e.g. GET

    url

    URL e.g. https://api.twitter.com/1.1/statuses/user_timeline.json?count=1&include_rts=1#noonecares

    body

    the parameters in the body if the Content-Type is application/x-www-form-urlencoded e.g status=true&day=today

    returns

    A built up KoauthRequest object

  8. def apply(request: KoauthRequest, paramList: List[(String, String)]): KoauthRequest

    Copies a KoauthRequest object.

    Copies a KoauthRequest object. Only the OAuth parameters have to be supplied. Those will be overwritten.

    request

    the already existing KoauthRequest to be copied

    paramList

    the parameters needed specifically for OAuth e.g. List(("oauth_token", "abc"), ...)

    returns

    A built up KoauthRequest object

  9. def apply(method: String, urlWithoutParams: String, authorizationHeader: Option[String], urlParams: List[(String, String)], bodyParams: List[(String, String)]): KoauthRequest

    Creates a KoauthRequest object specifying the HTTP method, URL without URL parameters separately, the URL parameters, the HTTP body application/x-www-form-urlencoded parameters if any and if that's the Content-Type, and the Authorization header.

    Creates a KoauthRequest object specifying the HTTP method, URL without URL parameters separately, the URL parameters, the HTTP body application/x-www-form-urlencoded parameters if any and if that's the Content-Type, and the Authorization header.

    Is able to parse a string in the format of an Authorization header and extract the Oauth parameters from there.

    method

    HTTP method e.g. GET

    urlWithoutParams

    URL without URL parameters e.g. https://api.twitter.com/1.1/statuses/user_timeline.json

    authorizationHeader

    A string in the format of an OAuth Authorization header.

    urlParams

    the parameters in the URL e.g. List(("count", "1"), ("include_rts", "1"))

    bodyParams

    the parameters in the body if the Content-Type is application/x-www-form-urlencoded

    returns

    A built up KoauthRequest object

  10. def apply(method: String, urlWithoutParams: String, urlParams: List[(String, String)], bodyParams: List[(String, String)], oauthParamsList: List[(String, String)]): KoauthRequest

    Creates a KoauthRequest object specifying the HTTP method, URL without URL parameters separately, the URL parameters, the HTTP body application/x-www-form-urlencoded parameters if any and if that's the Content-Type, and the OAuth parameters.

    Creates a KoauthRequest object specifying the HTTP method, URL without URL parameters separately, the URL parameters, the HTTP body application/x-www-form-urlencoded parameters if any and if that's the Content-Type, and the OAuth parameters.

    The most explicit creation method.

    method

    HTTP method e.g. GET

    urlWithoutParams

    URL without URL parameters e.g. https://api.twitter.com/1.1/statuses/user_timeline.json

    urlParams

    the parameters in the URL e.g. List(("count", "1"), ("include_rts", "1"))

    bodyParams

    the parameters in the body if the Content-Type is application/x-www-form-urlencoded

    oauthParamsList

    the parameters needed specifically for OAuth e.g. List(("oauth_token", "abc"), ...)

    returns

    A built up KoauthRequest object

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def extractOauthParams(authorizationHeader: Option[String]): List[(String, String)]

  16. def extractUrlParams(params: String): List[(String, String)]

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped