com.paypal.cascade.http.resource

HttpResourceActor

object HttpResourceActor

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

Type Members

  1. case class ProcessRequest(req: Any) extends Product with Serializable

    Sent to AbstractResourceActor to indicate that a request should be processed

    Sent to AbstractResourceActor to indicate that a request should be processed

    req

    The parsed request to process

  2. case class RequestIsProcessed(response: HttpResponse, mbLocation: Option[String]) extends Product with Serializable

  3. type RequestParser = (HttpRequest) ⇒ Try[AnyRef]

    the function that parses an spray.http.HttpRequest into a type, or fails

  4. case class ResourceContext(reqContext: RequestContext, reqParser: RequestParser, mbReturnActor: Option[ActorRef] = None, recvTimeout: FiniteDuration = ..., processRecvTimeout: FiniteDuration = ...) extends Product with Serializable

    ResourceContext contains all information needed to start an AbstractResourceActor

    ResourceContext contains all information needed to start an AbstractResourceActor

    reqContext

    the spray spray.routing.RequestContext for this request

    reqParser

    the function to parse the request into a valid scala type

    mbReturnActor

    the actor to send the successful spray.http.HttpResponse or the failed java.lang.Throwable. optional - pass None to not do this

    recvTimeout

    the longest time this actor will wait for any step (except the request processsing) to complete. if this actor doesn't execute a step in time, it immediately fails and sends an spray.http.HttpResponse indicating the error to the context and return actor.

    processRecvTimeout

    the longest time this actor will wait for reqProcessor to complete

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. object Start

    the only message to send each com.paypal.cascade.http.resource.HttpResourceActor.

    the only message to send each com.paypal.cascade.http.resource.HttpResourceActor. it begins processing the com.paypal.cascade.http.resource.AbstractResourceActor that it contains

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val defaultProcessRecvTimeout: FiniteDuration

    the receive timeout for the process function step in ResourceActor

  8. val defaultRecvTimeout: FiniteDuration

    the default receive timeout for most steps in ResourceActor

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def props(resourceActorProps: (ResourceContext) ⇒ AbstractResourceActor, reqContext: RequestContext, reqParser: RequestParser, mbResponseActor: Option[ActorRef], recvTimeout: FiniteDuration = defaultRecvTimeout, processRecvTimeout: FiniteDuration = defaultProcessRecvTimeout): Props

    create the akka.actor.Props for a new com.paypal.cascade.http.resource.HttpResourceActor

    resourceActorProps

    function for creating props for an actor which will handle the request

    reqContext

    the com.paypal.cascade.http.resource.HttpResourceActor.ResourceContext to pass to the com.paypal.cascade.http.resource.HttpResourceActor

    reqParser

    the parser function to pass to the com.paypal.cascade.http.resource.HttpResourceActor

    mbResponseActor

    the optional actor to pass to the com.paypal.cascade.http.resource.HttpResourceActor

    returns

    the new akka.actor.Props

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped