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 booleanequals(Object obj)Filefile()Returns a File object for the content.inthashCode()voidprocess(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.StringtoString()-
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:StaticContentReturns a File object for the content.- Specified by:
filein 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:StaticContentProcess the static content, adding the correct data to the response.- Specified by:
processin interfaceStaticContent- Parameters:
relativeURIString- URI path by which the content was addressedgReq- the requestgResp- the response- Throws:
IOException
-
-