|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.server.HttpRequestUnmarshaller com.flat502.rox.server.XmlRpcRequestUnmarshaller
public class XmlRpcRequestUnmarshaller
Constructor Summary | |
---|---|
XmlRpcRequestUnmarshaller(MethodCallUnmarshaller unmarshaller)
|
Method Summary | |
---|---|
protected java.lang.String |
getContentType()
|
RpcCall |
unmarshal(HttpRequestBuffer request,
MethodCallUnmarshallerAid aid)
|
protected void |
validateRequest(HttpRequestBuffer httpReq)
Validate an XML-RPC HTTP request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcRequestUnmarshaller(MethodCallUnmarshaller unmarshaller)
Method Detail |
---|
public RpcCall unmarshal(HttpRequestBuffer request, MethodCallUnmarshallerAid aid) throws java.lang.Exception
unmarshal
in class HttpRequestUnmarshaller
java.lang.Exception
protected void validateRequest(HttpRequestBuffer httpReq) throws HttpBufferException
This implementation checks for the following cases:
POST
.Content-Length
is present.Content-Type
is present and set
to the value returned by getContentType()
.
httpReq
- The complete HTTP message to validate.
MethodNotAllowedException
- if the HTTP method is anything other than POST
.
MissingHeaderException
- if Content-Length
, Content-Type
or Host
is missing.
InvalidHeaderException
- if Content-Type
is not the value
returned by getContentType()
or if another
header contains an invalid value.
HttpBufferException
- Implementations may throw other exceptions if
implementation-specific validation fails.protected java.lang.String getContentType()
text/xml
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |