public class FixedContent extends Content.Adapter implements StaticContent
Content.Adapter, Content.State| Constructor and Description |
|---|
FixedContent() |
FixedContent(File file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
File |
file()
Returns a File object for the content.
|
int |
hashCode() |
void |
process(String relativeURIString,
org.glassfish.grizzly.http.server.Request gReq,
org.glassfish.grizzly.http.server.Response gResp)
Process the static content, adding the correct data to the response.
|
String |
toString() |
isAvailable, resume, start, state, stop, suspendpublic FixedContent(File file)
public FixedContent()
public File file() throws IOException
StaticContentfile in interface StaticContentIOExceptionpublic void process(String relativeURIString, org.glassfish.grizzly.http.server.Request gReq, org.glassfish.grizzly.http.server.Response gResp) throws IOException
StaticContentprocess in interface StaticContentrelativeURIString - URI path by which the content was addressedgReq - the requestgResp - the responseIOExceptionCopyright © 2019. All rights reserved.