- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractBuilder
-
- org.pcap4j.packet.Ssh2DisconnectPacket.Builder
-
- All Implemented Interfaces:
java.lang.Iterable<Packet.Builder>,Packet.Builder
- Enclosing class:
- Ssh2DisconnectPacket
public static final class Ssh2DisconnectPacket.Builder extends AbstractPacket.AbstractBuilder
- Since:
- pcap4j 1.0.1
-
-
Field Summary
Fields Modifier and Type Field Description private Ssh2Stringdescriptionprivate Ssh2StringlanguageTagprivate Ssh2DisconnectionReasonCodereasonCode
-
Constructor Summary
Constructors Modifier Constructor Description Builder()privateBuilder(Ssh2DisconnectPacket packet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ssh2DisconnectPacketbuild()Build a packet object using values set to this object.Ssh2DisconnectPacket.Builderdescription(Ssh2String description)Ssh2DisconnectPacket.BuilderlanguageTag(Ssh2String languageTag)Ssh2DisconnectPacket.BuilderreasonCode(Ssh2DisconnectionReasonCode reasonCode)-
Methods inherited from class org.pcap4j.packet.AbstractPacket.AbstractBuilder
get, getOuterOf, getPayloadBuilder, iterator, payloadBuilder
-
-
-
-
Field Detail
-
reasonCode
private Ssh2DisconnectionReasonCode reasonCode
-
description
private Ssh2String description
-
languageTag
private Ssh2String languageTag
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
private Builder(Ssh2DisconnectPacket packet)
-
-
Method Detail
-
reasonCode
public Ssh2DisconnectPacket.Builder reasonCode(Ssh2DisconnectionReasonCode reasonCode)
- Parameters:
reasonCode- reasonCode- Returns:
- this Builder object for method chaining.
-
description
public Ssh2DisconnectPacket.Builder description(Ssh2String description)
- Parameters:
description- description- Returns:
- this Builder object for method chaining.
-
languageTag
public Ssh2DisconnectPacket.Builder languageTag(Ssh2String languageTag)
- Parameters:
languageTag- languageTag- Returns:
- this Builder object for method chaining.
-
build
public Ssh2DisconnectPacket build()
Description copied from interface:Packet.BuilderBuild a packet object using values set to this object.- Specified by:
buildin interfacePacket.Builder- Specified by:
buildin classAbstractPacket.AbstractBuilder- Returns:
- a new Packet object
-
-