Class MalformedFrame
- java.lang.Object
-
- jdk.incubator.http.internal.frame.Http2Frame
-
- jdk.incubator.http.internal.frame.MalformedFrame
-
public class MalformedFrame extends Http2Frame
-
-
Field Summary
-
Fields inherited from class jdk.incubator.http.internal.frame.Http2Frame
flags, FRAME_HEADER_SIZE, streamid
-
-
Constructor Summary
Constructors Constructor Description MalformedFrame(int errorCode, int errorStream, java.lang.String msg)
Creates Stream Error malformed frameMalformedFrame(int errorCode, java.lang.String msg)
Creates Connection Error malformed frame
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
java.lang.String
getMessage()
java.lang.String
toString()
-
Methods inherited from class jdk.incubator.http.internal.frame.Http2Frame
asString, clearFlag, flagAsString, getFlag, getFlags, setFlag, setFlags, streamid, streamid, type, typeAsString
-
-
-
-
Constructor Detail
-
MalformedFrame
public MalformedFrame(int errorCode, java.lang.String msg)
Creates Connection Error malformed frame- Parameters:
errorCode
- - error code, as specified by RFC 7540msg
- - internal debug message
-
MalformedFrame
public MalformedFrame(int errorCode, int errorStream, java.lang.String msg)
Creates Stream Error malformed frame- Parameters:
errorCode
- - error code, as specified by RFC 7540errorStream
- - id of error stream (RST_FRAME will be send for this stream)msg
- - internal debug message
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classHttp2Frame
-
getErrorCode
public int getErrorCode()
-
getMessage
public java.lang.String getMessage()
-
-