|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.idoox.transport.InputMessage
Input 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 | |
InputMessage()
|
Method Summary | |
java.lang.String |
getContentType()
Returns the MIME type of the body of the message, or null if the type is not known. |
long |
getDateHeader(java.lang.String name)
Returns the value of the specified message header as a long value. |
abstract java.util.Set |
getHeaderNames()
Returns a set of header names. |
int |
getIntHeader(java.lang.String name)
Returns the value of the specified message header as an int . |
java.lang.String |
getMultipartType()
Gets multipart type. |
abstract int |
getStatusCode()
Gets a status code. |
abstract java.lang.String |
getStringHeader(java.lang.String name)
Returns a value of the specified message header as a string . |
boolean |
nextPart()
Next part. |
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputMessage()
Method Detail |
public abstract int getStatusCode() throws java.io.IOException
x-wasp-sc
header.
java.io.IOException
- if an I/O error occurspublic abstract java.util.Set getHeaderNames() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic java.lang.String getContentType() throws java.io.IOException
null
if the type is not known.
java.io.IOException
- if an I/O error occurspublic abstract java.lang.String getStringHeader(java.lang.String name) throws java.io.IOException
string
.
If the message did not include a header of the specified name,
this method returns null
.
name
- the header name (this is case insensitive string)
null
if the given header doesn't exist
java.io.IOException
- if an I/O error occurspublic int getIntHeader(java.lang.String name) throws java.io.IOException
int
.
If the message does not have a header of the specified name,
this method returns -1
.
name
- the header name (this is case insensitive string)
-1
if
the given header doesn't exist
java.io.IOException
- if an I/O error occurspublic long getDateHeader(java.lang.String name) throws java.io.IOException
long
value. This is a number of milliseconds
since January 1, 1970 GMT.
If the message does not have a header of the specified name,
this method returns -1
.
name
- the name of the header (this is case insensitive
string)
-1 if the given header doesn't exist
- Throws:
java.io.IOException
- if an I/O error occurs
public java.lang.String getMultipartType() throws java.io.IOException
null
if this message
isn't multiparted
java.io.IOException
- if an I/O error occurspublic boolean nextPart() throws java.io.IOException
true
otherwise false
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |