public class StaticRoute<T extends ComponentsProvider>
extends Route
Describes an endpoint in a REST API that serves static files.
It contains
The HTTP method it accepts, must be GET, HEAD or OPTIONS
The path to the endpoint, for example /foo/bar
The authorisation needed to invoke the endpoint
Route.Companion| Constructor and Description |
|---|
StaticRoute(java.lang.String path,
java.lang.String indexFile,
Auth auth)
Describes an endpoint in a REST API that serves static files.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1() |
java.lang.String |
component2() |
Auth |
component3() |
StaticRoute<T> |
copy(java.lang.String path,
java.lang.String indexFile,
Auth auth)
Describes an endpoint in a REST API that serves static files.
|
boolean |
equals(java.lang.Object p) |
Auth |
getAuth() |
java.lang.String |
getIndexFile() |
java.lang.String |
getPath() |
int |
hashCode() |
java.lang.String |
toString() |
public StaticRoute(java.lang.String path,
java.lang.String indexFile,
Auth auth)
Describes an endpoint in a REST API that serves static files.
It contains
The HTTP method it accepts, must be GET, HEAD or OPTIONS
The path to the endpoint, for example /foo/bar
The authorisation needed to invoke the endpoint
public java.lang.String getPath()
public java.lang.String getIndexFile()
public Auth getAuth()
public java.lang.String component1()
public java.lang.String component2()
public Auth component3()
public StaticRoute<T> copy(java.lang.String path, java.lang.String indexFile, Auth auth)
Describes an endpoint in a REST API that serves static files.
It contains
The HTTP method it accepts, must be GET, HEAD or OPTIONS
The path to the endpoint, for example /foo/bar
The authorisation needed to invoke the endpoint
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)