Class FixedContent
- java.lang.Object
-
- org.glassfish.appclient.server.core.jws.servedcontent.Content.Adapter
-
- org.glassfish.appclient.server.core.jws.servedcontent.FixedContent
-
- All Implemented Interfaces:
Content
,StaticContent
- Direct Known Subclasses:
AutoSignedContent
public class FixedContent extends Content.Adapter implements StaticContent
Represents static content that is fixed in location and content over time.- Author:
- tjquinn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.appclient.server.core.jws.servedcontent.Content
Content.Adapter, Content.State
-
-
Constructor Summary
Constructors Constructor Description FixedContent()
FixedContent(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.glassfish.appclient.server.core.jws.servedcontent.Content.Adapter
isAvailable, resume, start, state, stop, suspend
-
-
-
-
Constructor Detail
-
FixedContent
public FixedContent(File file)
-
FixedContent
public FixedContent()
-
-
Method Detail
-
file
public File file() throws IOException
Description copied from interface:StaticContent
Returns a File object for the content.- Specified by:
file
in interfaceStaticContent
- Returns:
- a File object for the content
- Throws:
IOException
-
process
public void process(String relativeURIString, org.glassfish.grizzly.http.server.Request gReq, org.glassfish.grizzly.http.server.Response gResp) throws IOException
Description copied from interface:StaticContent
Process the static content, adding the correct data to the response.- Specified by:
process
in interfaceStaticContent
- Parameters:
relativeURIString
- URI path by which the content was addressedgReq
- the requestgResp
- the response- Throws:
IOException
-
-