cc.spray

HttpService

class HttpService extends HttpServiceActor with HttpServiceLogic

The default implementation of an HttpService. It combines the HttpServiceActor with the HttpServiceLogic. If you'd like to use a custom HttpServiceLogic you should generate a sub trait of HttpServiceLogic (e.g. CustomServiceLogic) and create your CustomHttpService with

 case class CustomHttpService(route: Route) extends HttpServiceActor with CustomServiceLogic 

In this way you can test your CustomServiceLogic with SprayTest without the need to fire up actual actors.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpService
  2. HttpServiceLogic
  3. HttpServiceActor
  4. PostStart
  5. Logging
  6. ErrorHandling
  7. Actor
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpService (route: Route)

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def become (behavior: Receive, discardOld: Boolean): Unit

    Definition Classes
    Actor
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def contextForRequest (request: HttpRequest): RequestContext

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def finalizeResponse (unverifiedResponse: HttpResponse): HttpResponse

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  14. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  15. def handle (request: HttpRequest): Unit

    Definition Classes
    HttpServiceLogic
  16. def handleCustomRejections (rejections: List[Rejection]): HttpResponse

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  17. def handleRejections (rejections: List[Rejection]): HttpResponse

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  18. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  19. def initialUnmatchedPath (request: HttpRequest): String

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  20. def isDefinedAt (message: Any): Boolean

    Definition Classes
    Actor
  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. lazy val log : Log

    Definition Classes
    Logging
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. implicit def optionSelf : Option[ActorRef]

    Attributes
    implicit
    Definition Classes
    Actor
  27. def postRestart (reason: Throwable): Unit

    Definition Classes
    Actor
  28. def postStart (): Unit

    Definition Classes
    HttpServiceActorPostStart
  29. def postStop (): Unit

    Definition Classes
    HttpServiceActor → Actor
  30. def preRestart (reason: Throwable): Unit

    Definition Classes
    HttpServiceActor → Actor
  31. def preStart (): Unit

    Definition Classes
    HttpServiceActorPostStart → Actor
  32. def receive : PartialFunction[Any, Unit]

    Attributes
    protected
    Definition Classes
    HttpServiceActor → Actor
  33. def responderForRequest (request: HttpRequest): (RoutingResult) ⇒ Unit

    Attributes
    protected[spray]
    Definition Classes
    HttpServiceActor
  34. def responseForException (request: HttpRequest, e: Exception): HttpResponse

    Attributes
    protected[spray]
    Definition Classes
    ErrorHandling
  35. def responseForRejections (rejections: List[Rejection]): HttpResponse

    Attributes
    protected[spray]
    Definition Classes
    HttpServiceLogic
  36. def responseFromRoutingResult (rr: RoutingResult): Option[HttpResponse]

    Attributes
    protected[spray]
    Definition Classes
    HttpServiceLogic
  37. val route : Route

    Definition Classes
    HttpServiceHttpServiceLogic
  38. val self : ScalaActorRef

    Definition Classes
    Actor
  39. val setDateHeader : Boolean

    Definition Classes
    HttpServiceActor
  40. implicit val someSelf : Some[ActorRef]

    Attributes
    implicit
    Definition Classes
    Actor
  41. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  42. def toString (): String

    Definition Classes
    AnyRef → Any
  43. def unbecome (): Unit

    Definition Classes
    Actor
  44. def unhandled (msg: Any): Unit

    Definition Classes
    Actor
  45. def verified (response: HttpResponse): HttpResponse

    Attributes
    protected
    Definition Classes
    HttpServiceLogic
  46. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from HttpServiceLogic

Inherited from HttpServiceActor

Inherited from PostStart

Inherited from Logging

Inherited from ErrorHandling

Inherited from Actor

Inherited from AnyRef

Inherited from Any