|
||||||||||
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
org.idoox.transport.RawInputMessage
org.idoox.transport.InputMessageWrapper
Input message wrapper. This class is useful for interceptor implementation which needs wrap another input message.
Field Summary |
Fields inherited from class org.idoox.transport.RawInputMessage |
isInited |
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 | |
InputMessageWrapper(InputMessage message)
Creates new input message wrapper. |
Method Summary | |
java.lang.String |
getContentType()
Gets a content type from the wrapped message. |
long |
getDateHeader(java.lang.String name)
Gets a date hader from the wrapped message. |
java.util.Set |
getHeaderNames()
Gets hader names from the wrapped message. |
int |
getIntHeader(java.lang.String name)
Gets a int header from the wrapped message. |
java.lang.String |
getMultipartType()
Gets a multipart type from the wrapped message. |
int |
getStatusCode()
Gets a status code from the wrapped message. |
java.lang.String |
getStringHeader(java.lang.String name)
Gets a string header from the wrapped message. |
InputMessage |
getWrappedMessage()
Gets a wrapped input message. |
boolean |
nextPart()
Gets a next part from the wrapped message. |
void |
setWrappedMessage(InputMessage message)
Sets new wrapped input message. |
Methods inherited from class org.idoox.transport.RawInputMessage |
available, close, getWrappedStream, initStream, mark, markSupported, read, read, read, reset, setWrappedStream, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputMessageWrapper(InputMessage message)
message
- wrapped messageMethod Detail |
public void setWrappedMessage(InputMessage message)
message
- wrapped messagepublic InputMessage getWrappedMessage()
public int getStatusCode() throws java.io.IOException
getStatusCode
in class InputMessage
java.io.IOException
- if an I/O error occurspublic java.util.Set getHeaderNames() throws java.io.IOException
getHeaderNames
in class InputMessage
java.io.IOException
- if an I/O error occurspublic java.lang.String getContentType() throws java.io.IOException
getContentType
in class InputMessage
java.io.IOException
- if an I/O error occurspublic java.lang.String getStringHeader(java.lang.String name) throws java.io.IOException
getStringHeader
in class InputMessage
name
- the header name
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
getIntHeader
in class InputMessage
name
- the header name
-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
getDateHeader
in class InputMessage
name
- the name of the header
-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
getMultipartType
in class InputMessage
null
if this message
isn't multiparted
java.io.IOException
- if an I/O error occurspublic boolean nextPart() throws java.io.IOException
nextPart
in class InputMessage
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 |