com.paypal.cascade.http.resource

HttpResourceActor

Related Doc: package resource

object HttpResourceActor

Linear Supertypes
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. type RequestParser = (HttpRequest) ⇒ Try[AnyRef]

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

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

    Contains all information needed to start an HttpResourceActor.

    Contains all information needed to start an HttpResourceActor.

    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

    resourceTimeout

    the time after which the request will time out, from the start of the request (i.e. when the resource actor receives Start.) Not the same as spray's timeout. This can be specified on a per-request basis and is more granular.

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

    Definition Classes
    Any
  5. def clone(): AnyRef

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

    The default timeout for a request which is not completed in time.

    The default timeout for a request which is not completed in time. Not the same as spray's timeout.

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  16. def props(resourceActorProps: (ResourceContext) ⇒ AbstractResourceActor, reqContext: RequestContext, reqParser: RequestParser, mbResponseActor: Option[ActorRef], resourceTimeout: FiniteDuration = defaultResourceTimeout): Props

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

    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

    resourceTimeout

    the amount of time until the request times out after it has been started. Not the same as spray's timeout. This can be specified on a per-request basis and is more granular.

    returns

    the new akka.actor.Props

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

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped