| Constructor and Description |
|---|
StaticPage(Class<?> resourceClass,
String pathPrefix,
String resourcePathPrefix,
String mimeType) |
StaticPage(String pathPrefix,
String resourcePathPrefix,
String mimeType)
Creates a new CSS page.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
Returns the path of this page.
|
Response |
handleRequest(REQ request,
Response response)
Handles a request.
|
boolean |
isPrefixPage()
Returns whether this page handles all paths beginning with
Page.getPath() or whether this page only handles a single path. |
public StaticPage(String pathPrefix, String resourcePathPrefix, String mimeType)
pathPrefix - The prefix for getPath()resourcePathPrefix - The path prefix when loading resourcesmimeType - The MIME type of the files this path containspublic String getPath()
public boolean isPrefixPage()
Page.getPath() or whether this page only handles a single path.isPrefixPage in interface Page<REQ extends Request>true if this page can handle multiple paths,
false if it handles only a single pathpublic Response handleRequest(REQ request, Response response) throws IOException
handleRequest in interface Page<REQ extends Request>request - The request to handleresponse - The responseIOException - if an I/O error occursCopyright © 2026. All rights reserved.