APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.net.http.frame

public Class MalformedFrame

extends Http2Frame
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private int
private String
Inherited from jdk.internal.net.http.frame.Http2Frame:
flagsFRAME_HEADER_SIZEstreamid

Constructor Summary

AccessConstructor and Description
public
MalformedFrame(int
- error code, as specified by RFC 7540
errorCode
,
String
- internal debug message
msg
)

Creates Connection Error malformed frame

public
MalformedFrame(int
- error code, as specified by RFC 7540
errorCode
,
int
- id of error stream (RST_FRAME will be send for this stream)
errorStream
,
String
- internal debug message
msg
)

Creates Stream Error malformed frame

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
toString()

Overrides jdk.internal.net.http.frame.Http2Frame.toString.

Returns a string representation of the object.

Inherited from jdk.internal.net.http.frame.Http2Frame:
asStringflagAsStringgetFlaggetFlagslengthsetFlagstreamidstreamidtype

Field Detail

errorCodeback to summary
private int errorCode
errorStreamback to summary
private int errorStream
msgback to summary
private String msg

Constructor Detail

MalformedFrameback to summary
public MalformedFrame(int errorCode, String msg)

Creates Connection Error malformed frame

Parameters
errorCode:int

- error code, as specified by RFC 7540

msg:String

- internal debug message

MalformedFrameback to summary
public MalformedFrame(int errorCode, int errorStream, String msg)

Creates Stream Error malformed frame

Parameters
errorCode:int

- error code, as specified by RFC 7540

errorStream:int

- id of error stream (RST_FRAME will be send for this stream)

msg:String

- internal debug message

Method Detail

getErrorCodeback to summary
public int getErrorCode()
getMessageback to summary
public String getMessage()
toStringback to summary
public String toString()

Overrides jdk.internal.net.http.frame.Http2Frame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override