public class Hessian2Serialization extends Object implements Serialization
e.g. <dubbo:protocol serialization="hessian2" />
| Constructor and Description |
|---|
Hessian2Serialization() |
| Modifier and Type | Method and Description |
|---|---|
ObjectInput |
deserialize(URL url,
InputStream is)
Get a deserialization implementation instance
|
String |
getContentType()
Get content type
|
byte |
getContentTypeId()
Get content type unique id, recommended that custom implementations use values greater than 20.
|
ObjectOutput |
serialize(URL url,
OutputStream out)
Get a serialization implementation instance
|
public byte getContentTypeId()
SerializationgetContentTypeId in interface Serializationpublic String getContentType()
SerializationgetContentType in interface Serializationpublic ObjectOutput serialize(URL url, OutputStream out) throws IOException
Serializationserialize in interface Serializationurl - URL address for the remote serviceout - the underlying output streamIOExceptionpublic ObjectInput deserialize(URL url, InputStream is) throws IOException
Serializationdeserialize in interface Serializationurl - URL address for the remote serviceis - the underlying input streamIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.