com.alipay.remoting.rpc.protocol
Class RpcRequestCommand

java.lang.Object
  extended by com.alipay.remoting.rpc.RpcCommand
      extended by com.alipay.remoting.rpc.RequestCommand
          extended by com.alipay.remoting.rpc.protocol.RpcRequestCommand
All Implemented Interfaces:
RemotingCommand, Serializable

public class RpcRequestCommand
extends RequestCommand

Request command for Rpc.

See Also:
Serialized Form

Constructor Summary
RpcRequestCommand()
          create request command without id
RpcRequestCommand(Object request)
          create request command with id and request object
 
Method Summary
 void deserializeClazz()
          Deserialize the content class.
 void deserializeContent(InvokeContext invokeContext)
          Deserialize the content.
 void deserializeHeader(InvokeContext invokeContext)
          Deserialize the header.
 long getArriveTime()
          Getter method for property arriveTime.
 CustomSerializer getCustomSerializer()
          Getter method for property customSerializer.
 String getRequestClass()
          Getter method for property requestClass.
 Object getRequestHeader()
          Getter method for property requestHeader.
 Object getRequestObject()
          Getter method for property requestObject.
 void serializeClazz()
          Serialize content class.
 void serializeContent(InvokeContext invokeContext)
          Serialize the content.
 void serializeHeader(InvokeContext invokeContext)
          Serialize the header.
 void setArriveTime(long arriveTime)
          Setter method for property arriveTime.
 void setRequestClass(String requestClass)
          Setter method for property requestClass.
 void setRequestHeader(Object requestHeader)
          Setter method for property requestHeader.
 void setRequestObject(Object requestObject)
          Setter method for property requestObject.
 
Methods inherited from class com.alipay.remoting.rpc.RequestCommand
getTimeout, setTimeout
 
Methods inherited from class com.alipay.remoting.rpc.RpcCommand
deserialize, deserialize, getClazz, getClazzLength, getCmdCode, getContent, getContentLength, getHeader, getHeaderLength, getId, getInvokeContext, getProtocolCode, getProtocolSwitch, getSerializer, getType, getVersion, serialize, setClazz, setCmdCode, setContent, setHeader, setId, setInvokeContext, setProtocolSwitch, setSerializer, setType, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcRequestCommand

public RpcRequestCommand()
create request command without id


RpcRequestCommand

public RpcRequestCommand(Object request)
create request command with id and request object

Parameters:
request -
Method Detail

serializeClazz

public void serializeClazz()
                    throws SerializationException
Description copied from class: RpcCommand
Serialize content class.

Overrides:
serializeClazz in class RpcCommand
Throws:
SerializationException

deserializeClazz

public void deserializeClazz()
                      throws DeserializationException
Description copied from class: RpcCommand
Deserialize the content class.

Overrides:
deserializeClazz in class RpcCommand
Throws:
DeserializationException

serializeHeader

public void serializeHeader(InvokeContext invokeContext)
                     throws SerializationException
Description copied from class: RpcCommand
Serialize the header.

Overrides:
serializeHeader in class RpcCommand
Throws:
SerializationException

deserializeHeader

public void deserializeHeader(InvokeContext invokeContext)
                       throws DeserializationException
Description copied from class: RpcCommand
Deserialize the header.

Overrides:
deserializeHeader in class RpcCommand
Throws:
DeserializationException

serializeContent

public void serializeContent(InvokeContext invokeContext)
                      throws SerializationException
Description copied from class: RpcCommand
Serialize the content.

Specified by:
serializeContent in interface RemotingCommand
Overrides:
serializeContent in class RpcCommand
Throws:
SerializationException

deserializeContent

public void deserializeContent(InvokeContext invokeContext)
                        throws DeserializationException
Description copied from class: RpcCommand
Deserialize the content.

Specified by:
deserializeContent in interface RemotingCommand
Overrides:
deserializeContent in class RpcCommand
Throws:
DeserializationException

getRequestObject

public Object getRequestObject()
Getter method for property requestObject.

Returns:
property value of requestObject

setRequestObject

public void setRequestObject(Object requestObject)
Setter method for property requestObject.

Parameters:
requestObject - value to be assigned to property requestObject

getRequestHeader

public Object getRequestHeader()
Getter method for property requestHeader.

Returns:
property value of requestHeader

setRequestHeader

public void setRequestHeader(Object requestHeader)
Setter method for property requestHeader.

Parameters:
requestHeader - value to be assigned to property requestHeader

getRequestClass

public String getRequestClass()
Getter method for property requestClass.

Returns:
property value of requestClass

setRequestClass

public void setRequestClass(String requestClass)
Setter method for property requestClass.

Parameters:
requestClass - value to be assigned to property requestClass

getCustomSerializer

public CustomSerializer getCustomSerializer()
Getter method for property customSerializer.

Returns:
property value of customSerializer

getArriveTime

public long getArriveTime()
Getter method for property arriveTime.

Returns:
property value of arriveTime

setArriveTime

public void setArriveTime(long arriveTime)
Setter method for property arriveTime.

Parameters:
arriveTime - value to be assigned to property arriveTime


Copyright © 2018. All rights reserved.