blueeyes.core.service

HttpServiceDescriptorFactoryCombinators

trait HttpServiceDescriptorFactoryCombinators extends HttpRequestHandlerCombinators with RestPathPatternImplicits with FutureImplicits

linear super types: FutureImplicits, RestPathPatternImplicits, HttpRequestHandlerCombinators, AnyRef, Any
known subclasses: BlueEyesServiceBuilderBase, BlueEyesServiceBuilder, BlueEyesDemoService, BlueEyesDemo, BlueEyesServiceBuilderString
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpServiceDescriptorFactoryCombinators
  2. FutureImplicits
  3. RestPathPatternImplicits
  4. HttpRequestHandlerCombinators
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. case class ServiceInvoker [T] (serviceRootUrl: String, client: HttpClient[T]) extends Product

  2. type ServiceLocator [T] = (String, HttpServiceVersion) ⇒ ServiceInvoker[T]

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $ [T, S] (h: HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    The path end combinator creates a handler that is defined only for paths that are fully matched.

    The path end combinator creates a handler that is defined only for paths that are fully matched.

    definition classes: HttpRequestHandlerCombinators
  5. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  6. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  8. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  9. def accept [T, S, U] (mimeType: MimeType)(h: HttpRequestHandler2[T, S])(implicit b: Bijection[U, T]) : HttpRequestHandler2[U, S]

    The accept combinator creates a handler that is defined only for requests that have the specified content type.

    The accept combinator creates a handler that is defined only for requests that have the specified content type. Requires an implicit bijection used for transcoding.

    definition classes: HttpRequestHandlerCombinators
  10. implicit def any2Future [T, S >: T] (any: T) : Future[S]

    attributes: implicit
    definition classes: FutureImplicits
  11. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  12. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  13. implicit def commit [T, S] (h: (HttpRequest[T]) ⇒ Future[HttpResponse[S]]) : HttpRequestHandler2[T, S]

    Converts a full request handler into a partial request handler that handles every input.

    Converts a full request handler into a partial request handler that handles every input. Note: This is an implicit and will automatically convert all full request handlers into partial request handlers, as required by type signatures.

    attributes: implicit
    definition classes: HttpRequestHandlerCombinators
  14. def commit [T, S] (msgGen: (HttpRequest[T]) ⇒ (HttpFailure, String))(h: HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    Forces a particular combinator to match.

    Forces a particular combinator to match.

    commit(r => BadRequest -> "Bad path: " + r.path) {
      path("/foo") {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  15. def configurableRoot [T, S] (f: HttpServiceDescriptorFactory[T, S]) : HttpServiceDescriptorFactory[T, S]

    Augments the service with a configurable root path.

    Augments the service with a configurable root path. If this combinator is used, the config for the service may contain a "rootPath" setting, which is used as the root path for the service.

    configurableRoot {
      request { state =>
        ...
      }
    }
    
  16. def connect [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  17. def contentType [T, S] (mimeType: MimeType)(h: HttpRequestHandler[T])(implicit b1: Bijection[S, T]) : HttpRequestHandler[S]

    The content type combinator creates a handler that accepts and produces requests and responses of the specified content type.

    The content type combinator creates a handler that accepts and produces requests and responses of the specified content type. Requires an implicit bijection used for transcoding.

    definition classes: HttpRequestHandlerCombinators
  18. def cookie [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String])(h: (String) ⇒ HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    A special-case extractor for cookie supporting a default value.

    A special-case extractor for cookie supporting a default value.

    cookie('token, "defaultValue") { token =>
      get {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  19. def cookie [T, S] (s1: Symbol)(h: (String) ⇒ HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    A special-case extractor for cookie.

    A special-case extractor for cookie.

    cookie('token) { token =>
      get {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  20. def cookies2 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  21. def cookies2 [T, S] (s1: Symbol, s2: Symbol) : ((String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    A special-case extractor for cookies.

    A special-case extractor for cookies.

    cookies2('username, 'password) { (username, password) =>
      get {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  22. def cookies3 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  23. def cookies3 [T, S] (s1: Symbol, s2: Symbol, s3: Symbol) : ((String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  24. def cookies4 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String], s4AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  25. def cookies4 [T, S] (s1: Symbol, s2: Symbol, s3: Symbol, s4: Symbol) : ((String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  26. def cookies5 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String], s4AndDefault: IdentifierWithDefault[Symbol, String], s5AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  27. def cookies5 [T, S] (s1: Symbol, s2: Symbol, s3: Symbol, s4: Symbol, s5: Symbol) : ((String, String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  28. def delete [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  29. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  30. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  31. def extract [T, S, E1] (extractor: (HttpRequest[T]) ⇒ E1) : ((E1) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    Extracts data from the request.

    Extracts data from the request. The extractor combinators can be used to factor out extraction logic that's duplicated across a range of handlers.

    Extractors are fail-fast combinators. If they cannot extract the required information during evaluation of isDefinedAt() method, they immediately throw an HttpException.

    extract(_.parameters('username)) { username =>
      ...
    }

    definition classes: HttpRequestHandlerCombinators
  32. def extract2 [T, S, E1, E2] (extractor: (HttpRequest[T]) ⇒ (E1, E2)) : ((E1, E2) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    extract2(r => (r.

    extract2(r => (r.parameters('username), r.parameters('password))) { (username, password) =>
      ...
    }

    definition classes: HttpRequestHandlerCombinators
  33. def extract3 [T, S, E1, E2, E3] (extractor: (HttpRequest[T]) ⇒ (E1, E2, E3)) : ((E1, E2, E3) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  34. def extract4 [T, S, E1, E2, E3, E4] (extractor: (HttpRequest[T]) ⇒ (E1, E2, E3, E4)) : ((E1, E2, E3, E4) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  35. def extract5 [T, S, E1, E2, E3, E4, E5] (extractor: (HttpRequest[T]) ⇒ (E1, E2, E3, E4, E5)) : ((E1, E2, E3, E4, E5) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  36. def field [S, F1 <: JValue] (s1AndDefault: IdentifierWithDefault[Symbol, F1])(implicit mc1: Manifest[F1]) : ((F1) ⇒ HttpRequestHandler2[JValue, S]) ⇒ HttpRequestHandler2[JValue, S]

    definition classes: HttpRequestHandlerCombinators
  37. def fields2 [S, F1 <: JValue, F2 <: JValue] (s1AndDefault: IdentifierWithDefault[Symbol, F1], s2AndDefault: IdentifierWithDefault[Symbol, F2])(implicit mc1: Manifest[F1], mc2: Manifest[F2]) : ((F1, F2) ⇒ HttpRequestHandler2[JValue, S]) ⇒ HttpRequestHandler2[JValue, S]

    definition classes: HttpRequestHandlerCombinators
  38. def fields3 [S, F1 <: JValue, F2 <: JValue, F3 <: JValue] (s1AndDefault: IdentifierWithDefault[Symbol, F1], s2AndDefault: IdentifierWithDefault[Symbol, F2], s3AndDefault: IdentifierWithDefault[Symbol, F3])(implicit mc1: Manifest[F1], mc2: Manifest[F2], mc3: Manifest[F3]) : ((F1, F2, F3) ⇒ HttpRequestHandler2[JValue, S]) ⇒ HttpRequestHandler2[JValue, S]

    definition classes: HttpRequestHandlerCombinators
  39. def fields4 [S, F1 <: JValue, F2 <: JValue, F3 <: JValue, F4 <: JValue] (s1AndDefault: IdentifierWithDefault[Symbol, F1], s2AndDefault: IdentifierWithDefault[Symbol, F2], s3AndDefault: IdentifierWithDefault[Symbol, F3], s4AndDefault: IdentifierWithDefault[Symbol, F4])(implicit mc1: Manifest[F1], mc2: Manifest[F2], mc3: Manifest[F3], mc4: Manifest[F4]) : ((F1, F2, F3, F4) ⇒ HttpRequestHandler2[JValue, S]) ⇒ HttpRequestHandler2[JValue, S]

    definition classes: HttpRequestHandlerCombinators
  40. def fields5 [S, F1 <: JValue, F2 <: JValue, F3 <: JValue, F4 <: JValue, F5 <: JValue] (s1AndDefault: IdentifierWithDefault[Symbol, F1], s2AndDefault: IdentifierWithDefault[Symbol, F2], s3AndDefault: IdentifierWithDefault[Symbol, F3], s4AndDefault: IdentifierWithDefault[Symbol, F4], s5AndDefault: IdentifierWithDefault[Symbol, F5])(implicit mc1: Manifest[F1], mc2: Manifest[F2], mc3: Manifest[F3], mc4: Manifest[F4], mc5: Manifest[F5]) : ((F1, F2, F3, F4, F5) ⇒ HttpRequestHandler2[JValue, S]) ⇒ HttpRequestHandler2[JValue, S]

    definition classes: HttpRequestHandlerCombinators
  41. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  42. def get [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  43. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  44. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  45. def head [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  46. def healthMonitor [T, S] (f: (HealthMonitor) ⇒ HttpServiceDescriptorFactory[T, S])(implicit jValueBijection: Bijection[JValue, T]) : HttpServiceDescriptorFactory[T, S]

    Augments the service with health monitoring.

    Augments the service with health monitoring. By default, various metrics relating to request type, request timing, and request fulfillment are exported to the health monitor.

    healthMonitor { monitor =>
      request { state =>
        ...
      }
    }
    
  47. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  48. def justTry [T, S] (h: HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    Attemps to peek to see if a particular handler will handle a request.

    Attemps to peek to see if a particular handler will handle a request. Used to convert a fast-failing handler into a skipping one.

    justTry {
      path("/foo") {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  49. def jvalue [T] (h: HttpRequestHandler[JValue])(implicit b: Bijection[T, JValue]) : HttpRequestHandler[T]

    The json combinator creates a handler that accepts and produces JSON.

    The json combinator creates a handler that accepts and produces JSON. Requires an implicit bijection used for transcoding.

    definition classes: HttpRequestHandlerCombinators
  50. def logging [T, S] (f: (Logger) ⇒ HttpServiceDescriptorFactory[T, S]) : HttpServiceDescriptorFactory[T, S]

    Augments the service with logging.

    Augments the service with logging.

    logging { logger =>
      request { state =>
        ...
      }
    }
    
  51. def method [T, S] (method: HttpMethod) : (HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    The method combinator creates a handler that is defined only for the specified HTTP method.

    The method combinator creates a handler that is defined only for the specified HTTP method.

    definition classes: HttpRequestHandlerCombinators
  52. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  53. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  54. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  55. def options [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  56. def orFail [T, S] (msg: String) : HttpRequestHandler2[T, S]

    path("/foo") {
      .

    path("/foo") {
      ...
    } ~ orFail("The path is malformed")

    definition classes: HttpRequestHandlerCombinators
  57. def orFail [T, S] (h: (HttpRequest[T]) ⇒ (HttpFailure, String)) : HttpRequestHandler2[T, S]

    path("/foo") {
      .

    path("/foo") {
      ...
    } ~ orFail { request => BadRequest -> "The path " + request.path + " is malformed" }

    definition classes: HttpRequestHandlerCombinators
  58. def parameter [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String]) : ((String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    A special-case extractor for parameters.

    A special-case extractor for parameters.

    parameter('token) { token =>
      get {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  59. def parameters2 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    A special-case extractor for parameters.

    A special-case extractor for parameters.

    parameters2('username, 'password) { (username, password) =>
      get {
        ...
      }
    }

    definition classes: HttpRequestHandlerCombinators
  60. def parameters3 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  61. def parameters4 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String], s4AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  62. def parameters5 [T, S] (s1AndDefault: IdentifierWithDefault[Symbol, String], s2AndDefault: IdentifierWithDefault[Symbol, String], s3AndDefault: IdentifierWithDefault[Symbol, String], s4AndDefault: IdentifierWithDefault[Symbol, String], s5AndDefault: IdentifierWithDefault[Symbol, String]) : ((String, String, String, String, String) ⇒ HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  63. def patch [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  64. def path [T, S] (path: RestPathPattern) : (HttpRequestHandler2[T, S]) ⇒ HttpRequestHandler2[T, S]

    The path combinator creates a handler that is defined only for suffixes of the specified path pattern.

    The path combinator creates a handler that is defined only for suffixes of the specified path pattern.

    path("/foo") {
      ...
    }
    
    definition classes: HttpRequestHandlerCombinators
  65. def post [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  66. def produce [T, S, V] (mimeType: MimeType)(h: HttpRequestHandler2[T, S])(implicit b: Bijection[S, V]) : HttpRequestHandler2[T, V]

    The produce combinator creates a handler that is produces responses that have the specified content type.

    The produce combinator creates a handler that is produces responses that have the specified content type. Requires an implicit bijection used for transcoding.

    definition classes: HttpRequestHandlerCombinators
  67. def put [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  68. implicit def regexToRestPathPatternBuilder (regex: Regex) : AnyRef {...}

    Example: new Regex("""([a-z]+)""", "id") ~ List('id) In use example: ads / foo / new Regex("""([a-z]+)""", "id") ~ List('id)

    Example: new Regex("""([a-z]+)""", "id") ~ List('id) In use example: ads / foo / new Regex("""([a-z]+)""", "id") ~ List('id)

    A note about groups for scala Regex: Scala Regex is based off of Java Pattern, in which groups are not given names, only numbers based on the order in which they appear. Thus, the labels one gives groups in the Scala Regex are assigned based on ordering from the java Pattern. As such, in the following example, New Regex("""(a|z)(b+)""", "id1", "id2") id1 referss to the capture group a|z, whereas id2 refers to b+.

    attributes: implicit
    definition classes: RestPathPatternImplicits
  69. def remainingPath [T, S] (handler: (String) ⇒ HttpRequestHandler2[T, S]) : HttpRequestHandler2[T, S]

    Yields the remaining path to the specified function, which should return a request handler.

    Yields the remaining path to the specified function, which should return a request handler.

    remainingPath { path =>
      get {
        ...
      }
    }
    
    definition classes: HttpRequestHandlerCombinators
  70. def serviceLocator [T, S] (f: (ServiceLocator[T]) ⇒ HttpServiceDescriptorFactory[T, S])(implicit client: HttpClient[T]) : HttpServiceDescriptorFactory[T, S]

    Augments the service with a locator, which is capable of creating HTTP clients that connect to other BlueEyes services based on settings in the config file.

    Augments the service with a locator, which is capable of creating HTTP clients that connect to other BlueEyes services based on settings in the config file.

    To locate foo/v1, the locator will look at the config setting: services.foo.v1.serviceRootUrl

    serviceLocator { locator =>
      ...
      val content = locator("email", "1.01") {
        get$ { response =>
          response.content.get
        }
      }
    }
    
  71. implicit def stringToRestPathPathPattern (s: String) : RestPathPattern

    attributes: implicit
    definition classes: RestPathPatternImplicits
  72. implicit def symbolToRestPathPathPattern (s: Symbol) : RestPathPattern

    attributes: implicit
    definition classes: RestPathPatternImplicits
  73. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  74. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  75. def trace [T, S] (h: HttpRequestHandlerFull2[T, S]) : HttpRequestHandler2[T, S]

    definition classes: HttpRequestHandlerCombinators
  76. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  77. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  78. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  79. def xml [T] (h: HttpRequestHandler[NodeSeq])(implicit b: Bijection[T, NodeSeq]) : HttpRequestHandler[T]

    The xml combinator creates a handler that accepts and produces XML.

    The xml combinator creates a handler that accepts and produces XML. Requires an implicit bijection used for transcoding.

    definition classes: HttpRequestHandlerCombinators

Inherited from FutureImplicits

Inherited from RestPathPatternImplicits

Inherited from HttpRequestHandlerCombinators

Inherited from AnyRef

Inherited from Any