|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.ResourceResponseImpl
public class ResourceResponseImpl
the normal SDataResponse object
Constructor Summary | |
---|---|
ResourceResponseImpl(int responseCode)
constructs the SDataResponse with the provided response code |
|
ResourceResponseImpl(SDataResponseEntry entry,
int responseCode)
constructs the SDataResponse with the provided entry and response code |
|
ResourceResponseImpl(SDataResponseFeed feed,
int responseCode)
constructs the SDataResponse with the provided feed and response code |
Method Summary | |
---|---|
void |
addToResponse(javax.servlet.http.HttpServletResponse response,
java.lang.String resourcesURL,
java.lang.String fullURL,
SDataDiagnoses sdataDiagnoses)
|
java.lang.String |
getCacheControl()
Gets the caching control information to place in the response header for the "Cache-Control" (e.g. |
SDataResponseEntry |
getEntry()
Gets the SDataResponseEntry . |
SDataResponseFeed |
getFeed()
Gets the SDataResponseFeed . |
int |
getResponseCode()
|
void |
setResponseCode(int responseCode)
Sets the HTTP response code. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceResponseImpl(SDataResponseEntry entry, int responseCode)
entry
- An Atom Entry in an SData responseresponseCode
- servlet responseCodepublic ResourceResponseImpl(SDataResponseFeed feed, int responseCode)
feed
- An Atom Feed in an SData responseresponseCode
- servlet responseCodepublic ResourceResponseImpl(int responseCode)
responseCode
- servlet responseCodeMethod Detail |
---|
public int getResponseCode()
getResponseCode
in interface ResourceResponse
public void setResponseCode(int responseCode)
responseCode
- HttpServletResponse codepublic void addToResponse(javax.servlet.http.HttpServletResponse response, java.lang.String resourcesURL, java.lang.String fullURL, SDataDiagnoses sdataDiagnoses)
addToResponse
in interface ResourceResponse
public SDataResponseEntry getEntry()
ResourceResponse
SDataResponseEntry
.
getEntry
in interface ResourceResponse
public SDataResponseFeed getFeed()
ResourceResponse
SDataResponseFeed
.
getFeed
in interface ResourceResponse
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCacheControl()
ResourceResponse
getCacheControl
in interface ResourceResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |