|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.cgi.CgiRpcMethodCall
public class CgiRpcMethodCall
Constructor Summary | |
---|---|
CgiRpcMethodCall(java.lang.String methodName,
java.lang.Object[] parameters)
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
Called to get the value for the Content-Type
HTTP header. |
java.lang.String |
getHttpMethod()
|
java.lang.String |
getHttpURI(java.net.URL url)
Map the destination URL onto a URI for use in an HTTP request. |
java.lang.String |
getName()
Get the method name to invoke (or being invoked). |
java.lang.Object[] |
getParameters()
Get a list of parameters to pass to (or that were passed to) this method call. |
void |
marshal(java.io.OutputStream out,
java.nio.charset.Charset charSet)
Marshal the current instance to an OutputStream
encoded using the specified character set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CgiRpcMethodCall(java.lang.String methodName, java.lang.Object[] parameters)
Method Detail |
---|
public java.lang.String getName()
RpcCall
getName
in interface RpcCall
public java.lang.Object[] getParameters()
RpcCall
Implementations must not return null
.
If no parameters exist a zero length array should
be returned to simplify logic that depends on this
method.
getParameters
in interface RpcCall
null
.public java.lang.String getHttpMethod()
getHttpMethod
in interface RpcCall
public java.lang.String getHttpURI(java.net.URL url)
RpcCall
This method provides implementations with an opportunity to generate an appropriate URI (possibly tranformed) before the underlying HTTP request is contructed and sent.
getHttpURI
in interface RpcCall
url
- The URL the client making the call was directed at.
public java.lang.String getContentType()
RpcMethod
Content-Type
HTTP header.
This is used when constructing requests and responses, and when validating requests and responses.
getContentType
in interface RpcMethod
Content-Type
string description
without the charset
attribute.public void marshal(java.io.OutputStream out, java.nio.charset.Charset charSet) throws java.io.IOException, MarshallingException
RpcMethod
OutputStream
encoded using the specified character set.
Implementations are free to ignore the character set but only if a character set has been agreed upon in advance by both sides.
marshal
in interface RpcMethod
out
- The OutputStream
to marshal
this instance to.charSet
- The character set to use when encoding
the marshalled form of this instance. When
this interface is invoked by an
HttpRpcProcessor
this is the value that will be sent as part of the
Content-Type
HTTP header.
java.io.IOException
- if an error occurs while storing the marshalled
form of this instance out this instance.
MarshallingException
- if an error occurs while marshalling this instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |