Package one.nio.serial
Class HttpRequestSerializer
- java.lang.Object
-
- one.nio.serial.Serializer<Request>
-
- one.nio.serial.HttpRequestSerializer
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
public class HttpRequestSerializer extends Serializer<Request>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid
-
-
Constructor Summary
Constructors Constructor Description HttpRequestSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcSize(Request obj, CalcSizeStream css)RequestfromJson(JsonReader in)Requestread(DataStream in)private static intselectMethod(java.lang.String requestLine)voidskip(DataStream in)voidtoJson(Request obj, java.lang.StringBuilder builder)voidwrite(Request obj, DataStream out)-
Methods inherited from class one.nio.serial.Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, readExternal, serialize, sizeOf, skipExternal, toJson, toString, uid, uniqueName, writeExternal
-
-
-
-
Method Detail
-
calcSize
public void calcSize(Request obj, CalcSizeStream css) throws java.io.IOException
- Specified by:
calcSizein classSerializer<Request>- Throws:
java.io.IOException
-
write
public void write(Request obj, DataStream out) throws java.io.IOException
- Specified by:
writein classSerializer<Request>- Throws:
java.io.IOException
-
read
public Request read(DataStream in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readin classSerializer<Request>- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
skip
public void skip(DataStream in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
skipin classSerializer<Request>- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
toJson
public void toJson(Request obj, java.lang.StringBuilder builder) throws java.io.IOException
- Specified by:
toJsonin classSerializer<Request>- Throws:
java.io.IOException
-
fromJson
public Request fromJson(JsonReader in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
fromJsonin classSerializer<Request>- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
selectMethod
private static int selectMethod(java.lang.String requestLine) throws java.io.IOException- Throws:
java.io.IOException
-
-