scalamachine.core

ReqRespData

case class ReqRespData(baseUri: String = "", pathParts: List[String] = immutable.this.Nil, rawPath: String = "", query: Map[String, List[String]] = ..., hostParts: List[String] = immutable.this.Nil, method: HTTPMethod = HTTPMethods.GET, statusCode: Int = 200, requestHeaders: Map[HTTPHeader, String] = ..., responseHeaders: Map[HTTPHeader, String] = ..., requestBody: HTTPBody = HTTPBody.Empty, responseBody: HTTPBody = HTTPBody.Empty, doRedirect: Boolean = false, pathData: PathData = ..., hostData: HostData = ..., metadata: Metadata = ...) extends Product with Serializable

Represents the request being sent by the client as well as the response built by the resource

A Note about Headers: framework implementations ensure that only headers that Scalamachine knows about (defined via scalamachine.core.HTTPHeaders.createHeader) are present in header collections. Additionally, header collections do not currenlty support the same header appearing more than once in a request although allowed by the HTTP spec Support for this will be added shortly.

Still missing from the original implementation:

baseUri

The base of the requested URI. Includes the scheme and host without the trailing slash (e.g. http://example.com)

pathParts

List of string tokens, the request URI path split by "/"

rawPath

The entire path part of the URI, including any query string present.

query

parsed query string. duplicate keys will have multiple elements in the values list otherwise the values list will only have one element

method

The request's scalamachine.core.HTTPMethod

statusCode

integer response status code

requestHeaders

Request headers

responseHeaders

Response headers

requestBody

The body of the request. See scalamachine.core.HTTPBody for more

responseBody

The body of the response to be set by this resource. See scalamachine.core.HTTPBody for more

doRedirect

If true some responses will return 303 instead of 2xx

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReqRespData
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReqRespData(baseUri: String = "", pathParts: List[String] = immutable.this.Nil, rawPath: String = "", query: Map[String, List[String]] = ..., hostParts: List[String] = immutable.this.Nil, method: HTTPMethod = HTTPMethods.GET, statusCode: Int = 200, requestHeaders: Map[HTTPHeader, String] = ..., responseHeaders: Map[HTTPHeader, String] = ..., requestBody: HTTPBody = HTTPBody.Empty, responseBody: HTTPBody = HTTPBody.Empty, doRedirect: Boolean = false, pathData: PathData = ..., hostData: HostData = ..., metadata: Metadata = ...)

    baseUri

    The base of the requested URI. Includes the scheme and host without the trailing slash (e.g. http://example.com)

    pathParts

    List of string tokens, the request URI path split by "/"

    rawPath

    The entire path part of the URI, including any query string present.

    query

    parsed query string. duplicate keys will have multiple elements in the values list otherwise the values list will only have one element

    method

    The request's scalamachine.core.HTTPMethod

    statusCode

    integer response status code

    requestHeaders

    Request headers

    responseHeaders

    Response headers

    requestBody

    The body of the request. See scalamachine.core.HTTPBody for more

    responseBody

    The body of the response to be set by this resource. See scalamachine.core.HTTPBody for more

    doRedirect

    If true some responses will return 303 instead of 2xx

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val baseUri: String

    The base of the requested URI.

    The base of the requested URI. Includes the scheme and host without the trailing slash (e.g. http://example.com)

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. val dispPath: String

  10. val dispSubdomain: String

  11. val doRedirect: Boolean

    If true some responses will return 303 instead of 2xx

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val host: String

  16. val hostInfo: Map[Symbol, String]

  17. val hostParts: List[String]

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def mergeResponseHeaders(newHeaders: Map[HTTPHeader, String]): ReqRespData

  20. val method: HTTPMethod

    The request's scalamachine.core.HTTPMethod

  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. val path: String

  25. val pathInfo: Map[Symbol, String]

  26. val pathParts: List[String]

    List of string tokens, the request URI path split by "/"

  27. val pathTokens: Seq[String]

  28. val query: Map[String, List[String]]

    parsed query string.

    parsed query string. duplicate keys will have multiple elements in the values list otherwise the values list will only have one element

  29. val rawPath: String

    The entire path part of the URI, including any query string present.

  30. val requestBody: HTTPBody

    The body of the request.

    The body of the request. See scalamachine.core.HTTPBody for more

  31. def requestHeader(header: HTTPHeader): Option[String]

  32. val requestHeaders: Map[HTTPHeader, String]

    Request headers

  33. val responseBody: HTTPBody

    The body of the response to be set by this resource.

    The body of the response to be set by this resource. See scalamachine.core.HTTPBody for more

  34. def responseHeader(header: HTTPHeader): Option[String]

  35. val responseHeaders: Map[HTTPHeader, String]

    Response headers

  36. def setResponseHeader(header: HTTPHeader, value: String): ReqRespData

  37. def setStatusCode(code: Int): ReqRespData

  38. val statusCode: Int

    integer response status code

  39. val subdomainTokens: Seq[String]

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

    Definition Classes
    AnyRef
  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped