Interface StaticContent
-
- All Superinterfaces:
Content
- All Known Implementing Classes:
AutoSignedContent
,FixedContent
,StreamedAutoSignedStaticContent
public interface StaticContent extends Content
Represents all static content served for Java Web Start app client launches.This interface exposes a File object, as opposed to a stream for example, so that the Grizzly adapter that actually serves the content can use sendFile for efficiency.
- Author:
- tjquinn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.appclient.server.core.jws.servedcontent.Content
Content.Adapter, Content.State
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description File
file()
Returns a File object for the content.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.
-
-
-
Method Detail
-
file
File file() throws IOException
Returns a File object for the content.- Returns:
- a File object for the content
- Throws:
IOException
-
process
void process(String relativeURIString, org.glassfish.grizzly.http.server.Request gReq, org.glassfish.grizzly.http.server.Response gResp) throws Exception
Process the static content, adding the correct data to the response.- Parameters:
relativeURIString
- URI path by which the content was addressedgReq
- the requestgResp
- the response- Throws:
Exception
-
-