|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.idoox.transport.OutputMessage
Output message with no multipart implementation.
Field Summary |
Fields inherited from interface org.idoox.transport.Message |
CT_APPLICATION_DIME, CT_MULTIPART_ALTERNATIVE, CT_MULTIPART_MIXED, CT_MULTIPART_RELATED, CT_MUTLIPART_FORMDATA, SC_ACCEPTED, SC_BAD_MESSAGE, SC_CREATED, SC_FORBIDDEN, SC_INTERNAL_ERROR, SC_METHOD_NOT_ALLOWED, SC_NO_CONTENT, SC_NOT_FOUND, SC_OK, SC_PROTOCOL_NOT_SUPPORTED, SC_REQUEST_TIMEOUT, SC_SERVICE_UNAVAILABLE, SC_SOAP_ACTION_REQUIRED, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE |
Constructor Summary | |
OutputMessage()
|
Method Summary | |
void |
nextPart()
This starts a new part. |
void |
setContentType(java.lang.String type)
Sets the MIME type of the body of the message, or null if the type is not known. |
void |
setCorrupted()
This is not a stable part of SSJ's public API, for internal use only! |
void |
setDateHeader(java.lang.String name,
long value)
Sets the value of the specified message header field as a long value. |
void |
setIntHeader(java.lang.String name,
int value)
Sets the value of the specified message header field as an int . |
void |
setMultipartType(java.lang.String type)
Sets multipart type. |
abstract void |
setStatusCode(int sc)
Sets the status code. |
abstract void |
setStringHeader(java.lang.String name,
java.lang.String value)
Sets the value of the specified message header field as a string . |
Methods inherited from class java.io.OutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputMessage()
Method Detail |
public abstract void setStatusCode(int sc)
x-wasp-sc
header.
sc
- the status codepublic void setContentType(java.lang.String type)
null
if the type is not known.
type
- the MIME typepublic abstract void setStringHeader(java.lang.String name, java.lang.String value)
string
.
name
- the header namevalue
- the value of the message headerpublic void setIntHeader(java.lang.String name, int value)
int
.
name
- the header namevalue
- the value of the message headerpublic void setDateHeader(java.lang.String name, long value)
long
value. It is a number of milliseconds since
January 1, 1970 GMT.
name
- the name of the headervalue
- the number of milliseconds since January 1, 1970
GMTpublic void setMultipartType(java.lang.String type) throws java.io.IOException
type
- mutlipart type
java.io.IOException
- if an I/O error occurspublic void nextPart() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void setCorrupted()
Marks that the upper layer aborted writing of the message and so the written data are corrupted and/or incomplete.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |