spray.routing.directives

MiscDirectives

object MiscDirectives extends MiscDirectives

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

Value Members

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

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

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

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

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

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

    Definition Classes
    Any
  7. def cancelAllRejections(cancelFilter: (Rejection) ⇒ Boolean): Directive0

    Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.

    Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.

    Definition Classes
    MiscDirectives
  8. def cancelRejection(rejection: Rejection): Directive0

    Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.

    Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.

    Definition Classes
    MiscDirectives
  9. def clientIP: Directive1[RemoteAddress]

    Directive extracting the IP of the client from either the X-Forwarded-For, Remote-Address or X-Real-IP header (in that order of priority).

    Directive extracting the IP of the client from either the X-Forwarded-For, Remote-Address or X-Real-IP header (in that order of priority).

    Definition Classes
    MiscDirectives
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  17. def jsonpWithParameter(parameterName: String): Directive0

    Wraps the inner Route with JSONP support.

    Wraps the inner Route with JSONP support. If a query parameter with the given name is present in the request and the inner Route returns content with content-type application/json the response content is wrapped with a call to a Javascript function having the name of query parameters value. The name of this function is validated to prevent XSS vulnerabilities. Only alphanumeric, underscore (_), dollar ($) and dot (.) characters are allowed. Additionally the content-type is changed from application/json to application/javascript in these cases.

    Definition Classes
    MiscDirectives
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. def ofType[T <: Rejection](implicit arg0: ClassTag[T]): (Rejection) ⇒ Boolean

    Definition Classes
    MiscDirectives
  22. def ofTypes(classes: Class[_]*): (Rejection) ⇒ Boolean

    Definition Classes
    MiscDirectives
  23. def rejectEmptyResponse: Directive0

    Converts responses with an empty entity into (empty) rejections.

    Converts responses with an empty entity into (empty) rejections. This way you can, for example, have the marshalling of a None option be treated as if the request could not be matched.

    Definition Classes
    MiscDirectives
  24. def requestEntityEmpty: Directive0

    Rejects the request if its entity is not empty.

    Rejects the request if its entity is not empty.

    Definition Classes
    MiscDirectives
  25. def requestEntityPresent: Directive0

    Rejects empty requests with a RequestEntityExpectedRejection.

    Rejects empty requests with a RequestEntityExpectedRejection. Non-empty requests are passed on unchanged to the inner route.

    Definition Classes
    MiscDirectives
  26. def requestInstance: Directive1[HttpRequest]

    Extracts the complete request.

    Extracts the complete request.

    Definition Classes
    MiscDirectives
  27. def requestUri: Directive1[Uri]

    Extracts the complete request URI.

    Extracts the complete request URI.

    Definition Classes
    MiscDirectives
  28. def rewriteUnmatchedPath(f: (Path) ⇒ Path): Directive0

    Transforms the unmatchedPath of the RequestContext using the given function.

    Transforms the unmatchedPath of the RequestContext using the given function.

    Definition Classes
    MiscDirectives
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def unmatchedPath: Directive1[Path]

    Extracts the unmatched path from the RequestContext.

    Extracts the unmatched path from the RequestContext.

    Definition Classes
    MiscDirectives
  32. def validate(check: ⇒ Boolean, errorMsg: String): Directive0

    Returns a Directive which checks the given condition before passing on the spray.routing.RequestContext to its inner Route.

    Returns a Directive which checks the given condition before passing on the spray.routing.RequestContext to its inner Route. If the condition fails the route is rejected with a spray.routing.ValidationRejection.

    Definition Classes
    MiscDirectives
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MiscDirectives

Inherited from AnyRef

Inherited from Any

Ungrouped