akka.http.scaladsl.server.directives

FileAndResourceDirectives

trait FileAndResourceDirectives extends AnyRef

Source
FileAndResourceDirectives.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileAndResourceDirectives
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (FileAndResourceDirectives, B)

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to ArrowAssoc[FileAndResourceDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def defaultClassLoader: ClassLoader

    Attributes
    protected[akka.http]
  11. def ensuring(cond: (FileAndResourceDirectives) ⇒ Boolean, msg: ⇒ Any): FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (FileAndResourceDirectives) ⇒ Boolean): FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def getFromBrowseableDirectories(directories: String*)(implicit renderer: DirectoryRenderer, resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Serves the content of the given directories as a file system browser, i.

    Serves the content of the given directories as a file system browser, i.e. files are sent and directories served as browseable listings.

  21. def getFromBrowseableDirectory(directory: String)(implicit renderer: DirectoryRenderer, resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Same as getFromBrowseableDirectories with only one directory.

  22. def getFromDirectory(directoryName: String)(implicit resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of a file underneath the given directory.

    Completes GET requests with the content of a file underneath the given directory. If the file cannot be read the Route rejects the request.

  23. def getFromFile(file: File, contentType: ContentType): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. If the file cannot be found or read the request is rejected.

  24. def getFromFile(file: File)(implicit resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. If the file cannot be found or read the request is rejected.

  25. def getFromFile(fileName: String)(implicit resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. If the file cannot be found or read the request is rejected.

  26. def getFromResource(resourceName: String, contentType: ContentType, classLoader: ClassLoader = defaultClassLoader): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of the given resource.

    Completes GET requests with the content of the given resource. If the resource is a directory or cannot be found or read the Route rejects the request.

  27. def getFromResource(resourceName: String)(implicit resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with the content of the given class-path resource.

    Completes GET requests with the content of the given class-path resource. If the resource cannot be found or read the Route rejects the request.

  28. def getFromResourceDirectory(directoryName: String, classLoader: ClassLoader = defaultClassLoader)(implicit resolver: ContentTypeResolver): (RequestContext) ⇒ Future[RouteResult]

    Same as "getFromDirectory" except that the file is not fetched from the file system but rather from a "resource directory".

    Same as "getFromDirectory" except that the file is not fetched from the file system but rather from a "resource directory". If the requested resource is itself a directory or cannot be found or read the Route rejects the request.

  29. def hashCode(): Int

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

    Definition Classes
    Any
  31. def listDirectoryContents(directories: String*)(implicit renderer: DirectoryRenderer): (RequestContext) ⇒ Future[RouteResult]

    Completes GET requests with a unified listing of the contents of all given directories.

    Completes GET requests with a unified listing of the contents of all given directories. The actual rendering of the directory contents is performed by the in-scope Marshaller[DirectoryListing].

  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def [B](y: B): (FileAndResourceDirectives, B)

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to ArrowAssoc[FileAndResourceDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (fileAndResourceDirectives: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (fileAndResourceDirectives: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to ArrowAssoc[FileAndResourceDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (fileAndResourceDirectives: ArrowAssoc[FileAndResourceDirectives]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: FileAndResourceDirectives

    Implicit information
    This member is added by an implicit conversion from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (fileAndResourceDirectives: Ensuring[FileAndResourceDirectives]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FileAndResourceDirectives to StringAdd

Inherited by implicit conversion any2stringfmt from FileAndResourceDirectives to StringFormat

Inherited by implicit conversion any2ArrowAssoc from FileAndResourceDirectives to ArrowAssoc[FileAndResourceDirectives]

Inherited by implicit conversion any2Ensuring from FileAndResourceDirectives to Ensuring[FileAndResourceDirectives]

Ungrouped