spray.routing.directives

FileAndResourceDirectives

trait FileAndResourceDirectives extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileAndResourceDirectives
  2. AnyRef
  3. 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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

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

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

  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.

  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 AnyRef

Inherited from Any

Ungrouped