com.paypal.cascade.http.resource

HttpResourceActor

abstract class HttpResourceActor extends ServiceActor

the actor to manage the execution of an com.paypal.cascade.http.resource.AbstractResourceActor. Create one of these per request

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpResourceActor
  2. ServiceActor
  3. CommonActor
  4. ActorLogging
  5. Actor
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpResourceActor(resourceContext: ResourceContext)

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor
  2. case class RequestIsParsed(parsedRequest: AnyRef) extends Product with Serializable

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to any2stringadd[HttpResourceActor] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpResourceActor, B)

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to ArrowAssoc[HttpResourceActor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. object BeforeExecuted extends Product with Serializable

  7. object ResponseContentTypeIsAcceptable extends Product with Serializable

  8. val acceptableContentTypes: List[ContentType]

    A list of content types that that this server can accept, by default application/json.

    A list of content types that that this server can accept, by default application/json. These will be matched against the Content-Type header of incoming requests.

    returns

    a list of content types

  9. def after(resp: HttpResponse): Unit

    This method will always be invoked after request processing is finished.

    This method will always be invoked after request processing is finished.

    If the method throws, the error will be logged and the given response will still be returned. As always, personally identifiable information should never be included in exception messages.

    resp

    The response to be returned to the client

  10. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  12. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  13. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  14. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def before(method: HttpMethod): Unit

    This method will always be invoked before request processing begins.

    This method will always be invoked before request processing begins. It is primarily provided for metrics tracking.

    If the method throws, an internal server error will be returned. As always, personally identifiable information should never be included in exception messages.

    method

    The Http method of the request in question

  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. implicit val context: ActorContext

    Definition Classes
    Actor
  19. def ensuring(cond: (HttpResourceActor) ⇒ Boolean, msg: ⇒ Any): HttpResourceActor

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to Ensuring[HttpResourceActor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (HttpResourceActor) ⇒ Boolean): HttpResourceActor

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to Ensuring[HttpResourceActor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: ⇒ Any): HttpResourceActor

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to Ensuring[HttpResourceActor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): HttpResourceActor

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to Ensuring[HttpResourceActor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to StringFormat[HttpResourceActor] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def handleError(exception: Exception): HttpResponse

    Exception handler for creating an http error response when Status.Failure is received.

    Exception handler for creating an http error response when Status.Failure is received.

    exception

    the exception

    returns

    a crafted HttpResponse from the error message

    Attributes
    protected
  29. def hashCode(): Int

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

    Definition Classes
    Any
  31. def log: LoggingAdapter

    Definition Classes
    ActorLogging
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def postRestart(reason: Throwable): Unit

    Definition Classes
    CommonActor → Actor
  36. def postStop(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  37. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  38. def preStart(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  39. def receive: akka.actor.Actor.Receive

    Definition Classes
    HttpResourceActor → Actor
  40. val responseContentType: ContentType

    The content type that this server provides, by default application/json

    The content type that this server provides, by default application/json

    returns

    a list of content types

  41. val responseLanguage: Option[Language]

    The language of the data in the response, to for the Content-Language header

    The language of the data in the response, to for the Content-Language header

    returns

    a spray.http.Language value in an Option, or None, if the Content-Language header does not need to be set for this resource

  42. implicit final val self: ActorRef

    Definition Classes
    Actor
  43. final def sender(): ActorRef

    Definition Classes
    Actor
  44. val supervisorStrategy: OneForOneStrategy

    Definition Classes
    HttpResourceActor → Actor
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  46. def toString(): String

    Definition Classes
    AnyRef → Any
  47. def unhandled(message: Any): Unit

    Definition Classes
    ServiceActor → Actor
    Annotations
    @throws( ... )
  48. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (HttpResourceActor, B)

    Implicit information
    This member is added by an implicit conversion from HttpResourceActor to ArrowAssoc[HttpResourceActor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ServiceActor

Inherited from CommonActor

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from HttpResourceActor to any2stringadd[HttpResourceActor]

Inherited by implicit conversion StringFormat from HttpResourceActor to StringFormat[HttpResourceActor]

Inherited by implicit conversion Ensuring from HttpResourceActor to Ensuring[HttpResourceActor]

Inherited by implicit conversion ArrowAssoc from HttpResourceActor to ArrowAssoc[HttpResourceActor]

Ungrouped