spray.routing.directives

FileAndResourceDirectives

object FileAndResourceDirectives extends FileAndResourceDirectives

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileAndResourceDirectives
  2. FileAndResourceDirectives
  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 clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  12. def getFromBrowseableDirectories(directories: String*)(implicit renderer: Marshaller[DirectoryListing], settings: RoutingSettings, resolver: ContentTypeResolver, refFactory: ActorRefFactory, log: LoggingContext): (RequestContext) ⇒ Unit

    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 browsable listings.

    Definition Classes
    FileAndResourceDirectives
  13. def getFromBrowseableDirectory(directory: String)(implicit renderer: Marshaller[DirectoryListing], settings: RoutingSettings, resolver: ContentTypeResolver, refFactory: ActorRefFactory, log: LoggingContext): (RequestContext) ⇒ Unit

    Same as getFromBrowseableDirectories with only one directory.

    Same as getFromBrowseableDirectories with only one directory.

    Definition Classes
    FileAndResourceDirectives
  14. def getFromDirectory(directoryName: String)(implicit settings: RoutingSettings, resolver: ContentTypeResolver, refFactory: ActorRefFactory, log: LoggingContext): (RequestContext) ⇒ Unit

    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. The unmatchedPath of the spray.RequestContext is first transformed by the given pathRewriter function before being appended to the given directoryName to build the final fileName. The actual I/O operation is running detached in a Future, so it doesn't block the current thread. If the file cannot be read the Route rejects the request.

    Definition Classes
    FileAndResourceDirectives
  15. def getFromFile(file: File, contentType: ContentType)(implicit settings: RoutingSettings, refFactory: ActorRefFactory): (RequestContext) ⇒ Unit

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. The actual I/O operation is running detached in a Future, so it doesn't block the current thread (but potentially some other thread !). If the file cannot be found or read the request is rejected.

    Definition Classes
    FileAndResourceDirectives
  16. def getFromFile(file: File)(implicit settings: RoutingSettings, resolver: ContentTypeResolver, refFactory: ActorRefFactory): (RequestContext) ⇒ Unit

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. The actual I/O operation is running detached in a Future, so it doesn't block the current thread (but potentially some other thread !). If the file cannot be found or read the request is rejected.

    Definition Classes
    FileAndResourceDirectives
  17. def getFromFile(fileName: String)(implicit settings: RoutingSettings, resolver: ContentTypeResolver, refFactory: ActorRefFactory): (RequestContext) ⇒ Unit

    Completes GET requests with the content of the given file.

    Completes GET requests with the content of the given file. The actual I/O operation is running detached in a Future, so it doesn't block the current thread (but potentially some other thread !). If the file cannot be found or read the request is rejected.

    Definition Classes
    FileAndResourceDirectives
  18. def getFromResource(resourceName: String, contentType: ContentType)(implicit refFactory: ActorRefFactory): (RequestContext) ⇒ Unit

    Completes GET requests with the content of the given resource.

    Completes GET requests with the content of the given resource. The actual I/O operation is running detached in a Future, so it doesn't block the current thread (but potentially some other thread !). If the file cannot be found or read the Route rejects the request.

    Definition Classes
    FileAndResourceDirectives
  19. def getFromResource(resourceName: String)(implicit resolver: ContentTypeResolver, refFactory: ActorRefFactory): (RequestContext) ⇒ Unit

    Completes GET requests with the content of the given resource.

    Completes GET requests with the content of the given resource. The actual I/O operation is running detached in a Future, so it doesn't block the current thread (but potentially some other thread !). If the file cannot be found or read the Route rejects the request.

    Definition Classes
    FileAndResourceDirectives
  20. def getFromResourceDirectory(directoryName: String)(implicit resolver: ContentTypeResolver, refFactory: ActorRefFactory, log: LoggingContext): (RequestContext) ⇒ Unit

    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".

    Definition Classes
    FileAndResourceDirectives
  21. def hashCode(): Int

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

    Definition Classes
    Any
  23. def listDirectoryContents(directories: String*)(implicit renderer: Marshaller[DirectoryListing], refFactory: ActorRefFactory, log: LoggingContext): (RequestContext) ⇒ Unit

    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].

    Definition Classes
    FileAndResourceDirectives
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  27. def respondWithLastModifiedHeader(timestamp: Long): Directive0

    Adds a Last-Modified header to all HttpResponses from its inner Route.

    Adds a Last-Modified header to all HttpResponses from its inner Route.

    Definition Classes
    FileAndResourceDirectives
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileAndResourceDirectives

Inherited from AnyRef

Inherited from Any

Ungrouped