org.apache.pekko.http.javadsl.server

Members list

Type members

Classlikes

Rejection created by the various pekko.http.javadsl.server.directives.SecurityDirectives. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.

Rejection created by the various pekko.http.javadsl.server.directives.SecurityDirectives. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.

Attributes

Companion
object
Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by the 'authorize' directive. Signals that the request was rejected because the user is not authorized.

Rejection created by the 'authorize' directive. Signals that the request was rejected because the user is not authorized.

Attributes

Companion
object
Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

Rejection created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes
trait Complete extends RouteResult

Attributes

Source
RouteResult.scala
Supertypes
trait RouteResult
class Object
trait Matchable
class Any
Known subtypes
class Complete
trait CustomRejection extends Rejection

To be extended by user-provided custom rejections, such that they may be consumed in either Java or Scala DSLs.

To be extended by user-provided custom rejections, such that they may be consumed in either Java or Scala DSLs.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
trait Rejection
class Object
trait Matchable
class Any
object Directives extends AllDirectives

Collects all default directives into one class for simple importing of static functions.

Collects all default directives into one class for simple importing of static functions.

See pekko.http.scaladsl.server.Directives for ScalaDSL equivalent of this class.

Attributes

Source
Directives.scala
Supertypes
Self type
Directives.type

Attributes

Companion
class
Source
ExceptionHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class ExceptionHandler

Handles exceptions by turning them into routes. You can create an exception handler in Java code like the following example:

Handles exceptions by turning them into routes. You can create an exception handler in Java code like the following example:

   ExceptionHandler myHandler = ExceptionHandler.of (ExceptionHandler.newPFBuilder()
       .match(IllegalArgumentException.class, x -> Directives.complete(StatusCodes.BAD_REQUEST))
       .build()
   ));

Attributes

Companion
object
Source
ExceptionHandler.scala
Supertypes
class Object
trait Matchable
class Any

Rejection created when a websocket request was expected but none was found.

Rejection created when a websocket request was expected but none was found.

Attributes

Companion
object
Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by pekko.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin. Signals that the request was rejected because Origin header value is invalid.

Rejection created by pekko.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin. Signals that the request was rejected because Origin header value is invalid.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by parameter filters. Signals that the request was rejected because a query parameter value was not equal to required one.

Rejection created by parameter filters. Signals that the request was rejected because a query parameter value was not equal to required one.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by form field filters. Signals that the request was rejected because a form field could not be interpreted.

Rejection created by form field filters. Signals that the request was rejected because a form field could not be interpreted.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by header directives. Signals that the request was rejected because a header value is malformed.

Rejection created by header directives. Signals that the request was rejected because a header value is malformed.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by parameter filters. Signals that the request was rejected because a query parameter could not be interpreted.

Rejection created by parameter filters. Signals that the request was rejected because a query parameter could not be interpreted.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by unmarshallers. Signals that the request was rejected because unmarshalling failed with an error that wasn't an IllegalArgumentException. Usually that means that the request content was not of the expected format. Note that semantic issues with the request content (e.g. because some parameter was out of range) will usually trigger a ValidationRejection instead.

Rejection created by unmarshallers. Signals that the request was rejected because unmarshalling failed with an error that wasn't an IllegalArgumentException. Usually that means that the request content was not of the expected format. Note that semantic issues with the request content (e.g. because some parameter was out of range) will usually trigger a ValidationRejection instead.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by method filters. Signals that the request was rejected because the HTTP method is unsupported.

Rejection created by method filters. Signals that the request was rejected because the HTTP method is unsupported.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by attribute directives. Signals that the request was rejected because a required request attribute could not be found.

Rejection created by attribute directives. Signals that the request was rejected because a required request attribute could not be found.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by the cookie directive. Signals that the request was rejected because a cookie was not found.

Rejection created by the cookie directive. Signals that the request was rejected because a cookie was not found.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by form field filters. Signals that the request was rejected because a form field was not found.

Rejection created by form field filters. Signals that the request was rejected because a form field was not found.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by header directives. Signals that the request was rejected because a required header could not be found.

Rejection created by header directives. Signals that the request was rejected because a required header could not be found.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by parameter filters. Signals that the request was rejected because a query parameter was not found.

Rejection created by parameter filters. Signals that the request was rejected because a query parameter was not found.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes
final class PathMatcher0(val toScala: PathMatcher[Unit])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher1[T1](val toScala: PathMatcher[Tuple1[T1]])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher2[T1, T2](val toScala: PathMatcher[(T1, T2)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

It is not possible to append more matchers with keeping their values as parameters (due to limit of Tuple22).

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

It is not possible to append more matchers with keeping their values as parameters (due to limit of Tuple22).

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher3[T1, T2, T3](val toScala: PathMatcher[(T1, T2, T3)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher4[T1, T2, T3, T4](val toScala: PathMatcher[(T1, T2, T3, T4)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher5[T1, T2, T3, T4, T5](val toScala: PathMatcher[(T1, T2, T3, T4, T5)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher6[T1, T2, T3, T4, T5, T6](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher7[T1, T2, T3, T4, T5, T6, T7](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher8[T1, T2, T3, T4, T5, T6, T7, T8](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatcher9[T1, T2, T3, T4, T5, T6, T7, T8, T9](val toScala: PathMatcher[(T1, T2, T3, T4, T5, T6, T7, T8, T9)])

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.

Attributes

Source
JavaPathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
final class PathMatchers

Attributes

Companion
object
Source
PathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
object PathMatchers

Attributes

Companion
class
Source
PathMatchers.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait Rejected extends RouteResult

Attributes

Source
RouteResult.scala
Supertypes
trait RouteResult
class Object
trait Matchable
class Any
Known subtypes
class Rejected
trait Rejection

A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered up over the course of a Route evaluation and finally converted to pekko.http.scaladsl.model.HttpResponses by the handleRejections directive, if there was no way for the request to be completed.

A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered up over the course of a Route evaluation and finally converted to pekko.http.scaladsl.model.HttpResponses by the handleRejections directive, if there was no way for the request to be completed.

If providing custom rejections, extend CustomRejection instead.

Attributes

Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Rejection
Show all

A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)

A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)

Attributes

Source
Rejections.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
RejectionHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class RejectionHandler(val asScala: RejectionHandler)

Attributes

Companion
object
Source
RejectionHandler.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
RejectionHandler.scala
Supertypes
class Object
trait Matchable
class Any
object Rejections

Attributes

Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Rejections.type

Attributes

Companion
object
Source
RequestContext.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
RequestContext.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.

Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.

Attributes

Companion
object
Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type

In the Java DSL, a Route can only consist of combinations of the built-in directives. A Route can not be instantiated directly.

In the Java DSL, a Route can only consist of combinations of the built-in directives. A Route can not be instantiated directly.

However, the built-in directives may be combined methods like:

Route myDirective(String test, Supplier inner) {
 return
   path("fixed", () ->
     path(test),
       inner
     )
   );
}

The above example will invoke [inner] whenever the path "fixed/{test}" is matched, where "{test}" is the actual String that was given as method argument.

Attributes

Source
Route.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RouteAdapter
trait RouteResult

Attributes

Source
RouteResult.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Complete
class Complete
trait Rejected
class Rejected
trait RouteResult
object RouteResults

Attributes

Source
RouteResult.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by scheme filters. Signals that the request was rejected because the Uri scheme is unsupported.

Rejection created by scheme filters. Signals that the request was rejected because the Uri scheme is unsupported.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.

Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

A special Rejection that serves as a container for a transformation function on rejections. It is used by some directives to "cancel" rejections that are added by later directives of a similar type.

A special Rejection that serves as a container for a transformation function on rejections. It is used by some directives to "cancel" rejections that are added by later directives of a similar type.

Consider this route structure for example:

put { reject(ValidationRejection("no") } ~ get { ... }

If this structure is applied to a PUT request the list of rejections coming back contains three elements:

  1. A ValidationRejection
  2. A MethodRejection
  3. A TransformationRejection holding a function filtering out the MethodRejection

so that in the end the RejectionHandler will only see one rejection (the ValidationRejection), because the MethodRejection added by the get directive is canceled by the put directive (since the HTTP method did indeed match eventually).

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client

Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client

Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client

Attributes

Companion
object
Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
Rejections.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.

Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.

Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.

Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created when a websocket request was not handled because none of the given subprotocols was supported.

Rejection created when a websocket request was not handled because none of the given subprotocols was supported.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes

Rejection created by the validation directive as well as for IllegalArgumentExceptions thrown by domain model constructors (e.g. via require). It signals that an expected value was semantically invalid.

Rejection created by the validation directive as well as for IllegalArgumentExceptions thrown by domain model constructors (e.g. via require). It signals that an expected value was semantically invalid.

Attributes

Source
Rejections.scala
Supertypes
trait Rejection
class Object
trait Matchable
class Any
Known subtypes