类 Hessian2Serialization
- java.lang.Object
-
- org.apache.dubbo.common.serialize.hessian2.Hessian2Serialization
-
- 所有已实现的接口:
Serialization
public class Hessian2Serialization extends Object implements Serialization
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubboe.g. <dubbo:protocol serialization="hessian2" />
-
-
构造器概要
构造器 构造器 说明 Hessian2Serialization()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectInput
deserialize(URL url, InputStream is)
Get a deserialization implementation instanceString
getContentType()
Get content typebyte
getContentTypeId()
Get content type unique id, recommended that custom implementations use values different with any value ofConstants
and don't greater than ExchangeCodec.SERIALIZATION_MASK (31) because dubbo protocol use 5 bits to record serialization ID in header.ObjectOutput
serialize(URL url, OutputStream out)
Get a serialization implementation instance
-
-
-
方法详细资料
-
getContentTypeId
public byte getContentTypeId()
从接口复制的说明:Serialization
Get content type unique id, recommended that custom implementations use values different with any value ofConstants
and don't greater than ExchangeCodec.SERIALIZATION_MASK (31) because dubbo protocol use 5 bits to record serialization ID in header.- 指定者:
getContentTypeId
在接口中Serialization
- 返回:
- content type id
-
getContentType
public String getContentType()
从接口复制的说明:Serialization
Get content type- 指定者:
getContentType
在接口中Serialization
- 返回:
- content type
-
serialize
public ObjectOutput serialize(URL url, OutputStream out) throws IOException
从接口复制的说明:Serialization
Get a serialization implementation instance- 指定者:
serialize
在接口中Serialization
- 参数:
url
- URL address for the remote serviceout
- the underlying output stream- 返回:
- serializer
- 抛出:
IOException
-
deserialize
public ObjectInput deserialize(URL url, InputStream is) throws IOException
从接口复制的说明:Serialization
Get a deserialization implementation instance- 指定者:
deserialize
在接口中Serialization
- 参数:
url
- URL address for the remote serviceis
- the underlying input stream- 返回:
- deserializer
- 抛出:
IOException
-
-