|
jbpm-form-modeler-request-dispatcher 6.0.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.formModeler.service.bb.mvc.controller.responses.SendStreamResponse
public class SendStreamResponse
This class allows sending a file as response.
| Field Summary | |
|---|---|
protected String |
contentDisposition
|
protected int |
contentLength
|
protected String |
contentType
|
protected int |
errorCode
|
protected InputStream |
is
|
protected boolean |
resetHeaders
|
| Constructor Summary | |
|---|---|
SendStreamResponse(File f)
Send a file as response. |
|
SendStreamResponse(File f,
boolean resetHeaders)
Send a file as response. |
|
SendStreamResponse(InputStream is,
String contentDisposition)
Send a stream as response, resetting response header |
|
SendStreamResponse(InputStream is,
String contentDisposition,
boolean resetHeaders)
Send a stream as response. |
|
SendStreamResponse(InputStream is,
String contentDisposition,
int contentLength)
Send a stream as response, resetting response header |
|
| Method Summary | |
|---|---|
boolean |
execute(CommandRequest cmdReq)
Executes the response. |
String |
getContentType()
|
protected void |
init(InputStream is,
String contentDisposition)
|
void |
setContentType(String contentType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InputStream is
protected String contentDisposition
protected int errorCode
protected boolean resetHeaders
protected String contentType
protected int contentLength
| Constructor Detail |
|---|
public SendStreamResponse(InputStream is,
String contentDisposition)
is - Stream to sendcontentDisposition - Should be something like "inline; filename=file.xxx;"
public SendStreamResponse(InputStream is,
String contentDisposition,
int contentLength)
is - Stream to sendcontentDisposition - Should be something like "inline; filename=file.xxx;"contentLength - Lenght of the stream's contentpublic SendStreamResponse(File f)
f - File to send
public SendStreamResponse(InputStream is,
String contentDisposition,
boolean resetHeaders)
is - Stream to sendcontentDisposition - Should be something like "inline; filename=file.xxx;"resetHeaders - Indicates if headers have to be resetted. Default is false, but should be true if the response is JSP or something else that you don't want to be cached.
public SendStreamResponse(File f,
boolean resetHeaders)
f - File to sendresetHeaders - Indicates if headers have to be resetted. Default is false, but should be true if the response is JSP or something else that you don't want to be cached.| Method Detail |
|---|
protected void init(InputStream is,
String contentDisposition)
public String getContentType()
public void setContentType(String contentType)
public boolean execute(CommandRequest cmdReq)
throws Exception
CommandResponse
execute in interface CommandResponsecmdReq - Object encapsulating the request information.
Exception
|
jbpm-form-modeler-request-dispatcher 6.0.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||