class staticResources extends router.HttpEndpoint[String, Seq[String]]
- Alphabetic
- By Inheritance
- staticResources
- HttpEndpoint
- Endpoint
- Decorator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new staticResources(path: String, resourceRoot: ClassLoader = getClass.getClassLoader)
Type Members
-
final
type
Delegate = (Map[String, Seq[String]]) ⇒ Result[String]
- Definition Classes
- Decorator
-
type
InputParser[T] = QueryParamReader[T]
- Definition Classes
- staticResources → Decorator
-
final
type
InputTypeAlias = Seq[String]
- Definition Classes
- Decorator
-
type
OuterReturned = Result[Raw]
- Definition Classes
- HttpEndpoint → Decorator
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
convertToResultType[T](t: T)(implicit f: Conversion[T, String]): String
- Definition Classes
- Endpoint
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getParamParser[T](implicit p: InputParser[T]): InputParser[T]
- Definition Classes
- Decorator
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
methods: Seq[String]
Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?
Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?
- Definition Classes
- staticResources → Endpoint
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
path: String
What is the path that this particular endpoint matches?
What is the path that this particular endpoint matches?
- Definition Classes
- staticResources → Endpoint
-
def
subpath: Boolean
Whether or not this endpoint allows matching on sub-paths: does
@endpoint("/foo")
capture the path "/foo/bar/baz"? Useful to e.g.Whether or not this endpoint allows matching on sub-paths: does
@endpoint("/foo")
capture the path "/foo/bar/baz"? Useful to e.g. have an endpoint match URLs with paths in a filesystem (real or virtual) to serve files- Definition Classes
- staticResources → Endpoint
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wrapFunction(ctx: model.Request, delegate: Delegate): OuterReturned
- Definition Classes
- staticResources → Decorator
-
def
wrapPathSegment(s: String): Seq[String]
HttpEndpoints are unique among decorators in that they alone can bind path segments to parameters, e.g.
HttpEndpoints are unique among decorators in that they alone can bind path segments to parameters, e.g. binding
/hello/:world
to(world: Int)
. In order to do so, we need to box up the path segment strings into an Input so they can later be parsed by getParamParser into an instance of the appropriate type.- Definition Classes
- staticResources → Endpoint
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.