uk.co.bigbeeconsultants.http.servlet

HttpServletResponseAdapter

class HttpServletResponseAdapter extends AnyRef

Adapts HTTP Servlet response objects to the Light Http Client API. This allows a variety of solutions such as reverse proxying to be implemented easily. Outline usage:

val adapter = new HttpServletResponseAdapter(httpServletResponse)
httpClient.execute(request, adapter.responseBuilder)
// optionally use adapter.response
// optionally: adapter.setResponseHeaders(...)
// optionally: adapter.setResponseCookies(...)
adapter.sendResponse()

The adapter.response is not available until *after* executing the http request; a NoSuchElementException will occur if it is accessed beforehand.

Annotations
@deprecated
Deprecated

(Since version 0.25.1) This will be removed from future versions.

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

Instance Constructors

  1. new HttpServletResponseAdapter(resp: HttpServletResponse, textualBodyFilter: Option[TextualBodyFilter] = scala.None)

    resp

    the response to be created

    textualBodyFilter

    an optional mutation that may be applied to every line of the body content.

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. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  17. lazy val response: Response

    Provides access to the response from the downstream server.

    Provides access to the response from the downstream server. This is not available until the request has been executed, which must be handled by the calling code.

  18. val responseBuilder: BufferedResponseBuilder

    Provides the means to capture the response from the downstream server.

  19. def sendResponse(): Unit

    Sends the response back to the client via the HttpServletResponse.

    Sends the response back to the client via the HttpServletResponse.

    Annotations
    @throws( classOf[IOException] )
  20. def setResponseCookies(jar: CookieJar): Unit

    Optionally, sets extra response cookies before sending the response.

  21. def setResponseHeaders(headers: Headers): Unit

    Optionally, sets extra response headers before sending the response.

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped