Class/Object

com.twitter.finatra.http.response

ResponseBuilder

Related Docs: object ResponseBuilder | package response

Permalink

class ResponseBuilder extends Logging

Linear Supertypes
Logging, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseBuilder
  2. Logging
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResponseBuilder(objectMapper: FinatraObjectMapper, fileResolver: FileResolver, messageBodyManager: MessageBodyManager, statsReceiver: StatsReceiver, includeContentTypeCharset: Boolean)

    Permalink
    Annotations
    @Inject()

Type Members

  1. case class EnrichedResponse(underlying: Response) extends ResponseProxy with Product with Serializable

    Permalink

    A wrapper around a com.twitter.finagle.http.Response which exposes a builder-like API for creating responses.

    A wrapper around a com.twitter.finagle.http.Response which exposes a builder-like API for creating responses.

    underlying

    the underlying com.twitter.finagle.http.Response

    See also

    com.twitter.finagle.http.Response

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. object EnrichedResponse extends Serializable

    Permalink
  5. def accepted(body: Any): EnrichedResponse

    Permalink
  6. def accepted: EnrichedResponse

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def badGateway: EnrichedResponse

    Permalink
  9. def badRequest(body: Any): EnrichedResponse

    Permalink
  10. def badRequest: EnrichedResponse

    Permalink
  11. def clientClosed: EnrichedResponse

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def conflict(body: Any): EnrichedResponse

    Permalink
  14. def conflict: EnrichedResponse

    Permalink
  15. def create(response: Response): EnrichedResponse

    Permalink
  16. def created(body: Any): EnrichedResponse

    Permalink
  17. def created: EnrichedResponse

    Permalink
  18. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  19. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  24. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  27. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  28. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  29. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  30. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def forbidden(body: Any): EnrichedResponse

    Permalink
  33. def forbidden: EnrichedResponse

    Permalink
  34. def found: EnrichedResponse

    Permalink
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def gone(body: Any): EnrichedResponse

    Permalink
  37. def gone: EnrichedResponse

    Permalink
  38. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  39. val htmlContentType: String

    Permalink
  40. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  41. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  42. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  43. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  44. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  45. def internalServerError(body: Any): EnrichedResponse

    Permalink
  46. def internalServerError: EnrichedResponse

    Permalink
  47. def isDebugEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  48. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  49. def isErrorEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  50. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  51. def isInfoEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  52. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  53. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  54. def isTraceEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  55. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  56. def isWarnEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  57. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  58. val jsonContentType: String

    Permalink
  59. def logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  60. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  61. def methodNotAllowed: EnrichedResponse

    Permalink
  62. def movedPermanently(body: Any): EnrichedResponse

    Permalink
  63. def movedPermanently: EnrichedResponse

    Permalink
  64. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  65. def noContent: EnrichedResponse

    Permalink
  66. def notAcceptable(body: Any): EnrichedResponse

    Permalink
  67. def notAcceptable: EnrichedResponse

    Permalink
  68. def notFound(body: Any): EnrichedResponse

    Permalink
  69. def notFound(body: String): EnrichedResponse

    Permalink
  70. def notFound: EnrichedResponse

    Permalink
  71. def notImplemented: EnrichedResponse

    Permalink
  72. def notModified: EnrichedResponse

    Permalink
  73. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  75. def ok(body: String): EnrichedResponse

    Permalink
  76. def ok(request: Request, body: Any): EnrichedResponse

    Permalink

    Returns an Ok response with a written body, potentially based on values contained within the com.twitter.finagle.http.Request.

    Returns an Ok response with a written body, potentially based on values contained within the com.twitter.finagle.http.Request.

    request

    the HTTP Request associated with this response

    body

    the response body, or the information needed to render the body

    Note

    This version is useful when the body parameter requires custom message body rendering and values in the Request are required for decision making.

  77. def ok(body: Any): EnrichedResponse

    Permalink
  78. def ok: EnrichedResponse

    Permalink
  79. val plainTextContentType: String

    Permalink
  80. def preconditionFailed(body: Any): EnrichedResponse

    Permalink
  81. def preconditionFailed: EnrichedResponse

    Permalink
  82. def requestEntityTooLarge(body: Any): EnrichedResponse

    Permalink
  83. def requestEntityTooLarge: EnrichedResponse

    Permalink
  84. def serviceUnavailable: EnrichedResponse

    Permalink
  85. def status(responseStatus: Status): EnrichedResponse

    Permalink
  86. def status(statusCode: Int): EnrichedResponse

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

    Permalink
    Definition Classes
    AnyRef
  88. def temporaryRedirect: EnrichedResponse

    Permalink
  89. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  90. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  91. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  92. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  93. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  94. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  95. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  96. def unauthorized(body: Any): EnrichedResponse

    Permalink
  97. def unauthorized: EnrichedResponse

    Permalink
  98. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  102. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  103. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  104. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  105. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from Logging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped