|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.BinaryResponse
public class BinaryResponse
this class is designed to return a binary HTTP response from the given
InputStream
Constructor Summary | |
---|---|
BinaryResponse(java.io.InputStream data,
java.lang.String filename,
long fileLength,
java.lang.String mimetype)
Constructor. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryResponse(java.io.InputStream data, java.lang.String filename, long fileLength, java.lang.String mimetype)
data
- the data to be sent to the client.filename
- the filename of the file to be sent to the clientfileLength
- the length of the file to be sent to the clientmimetype
- the mimetype of the document to be sent to the client. If
null then the default mime type will be used.Method Detail |
---|
public 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 int getResponseCode()
getResponseCode
in interface ResourceResponse
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 |