Object/Class

com.hunorkovacs.koauth.domain

KoauthRequest

Related Docs: class KoauthRequest | package domain

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(method: String, url: String, authorizationHeader: Option[String], body: Option[String]): KoauthRequest

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

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

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

    Permalink
  15. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped