public static class PppEthernet.Builder extends Object
| Constructor and Description |
|---|
PppEthernet.Builder()
Create a new builder using the defaults:
|
PppEthernet.Builder(PppEthernet pppe)
Copy constructor builder initialized from the passed in protocol.
|
| Modifier and Type | Method and Description |
|---|---|
PppEthernet |
build()
Creates a new protocol instance from this builder.
|
PppEthernet.Builder |
bytes(byte[] bytes)
Sets the payload bytes.
|
PppEthernet.Builder |
code(PppEthernet.Code code)
Sets the PPPoE code.
|
PppEthernet.Builder |
pppProtocolId(PppEthernet.PppProtocolId pppProtocolId)
Sets the PPPoE protocol ID.
|
PppEthernet.Builder |
sessionId(int sessionId)
Sets the PPPoE session ID.
|
PppEthernet.Builder |
type(int type)
Sets the PPPoE type.
|
PppEthernet.Builder |
version(int version)
Sets the PPPoE version.
|
public PppEthernet.Builder()
version = 1 type = 1 code = SESSION_DATA sessionId = 0 pppProtocolId = PPP_IP bytes = EMPTY_BYTES
public PppEthernet.Builder(PppEthernet pppe)
pppe - builder is initialed from this protocol's datapublic PppEthernet build()
public PppEthernet.Builder version(int version)
version - PPPoE versionpublic PppEthernet.Builder type(int type)
type - PPPoE typepublic PppEthernet.Builder sessionId(int sessionId)
sessionId - PPPoE session IDpublic PppEthernet.Builder code(PppEthernet.Code code)
code - PPPoE codepublic PppEthernet.Builder pppProtocolId(PppEthernet.PppProtocolId pppProtocolId)
pppProtocolId - PPPoE protocol IDpublic PppEthernet.Builder bytes(byte[] bytes)
bytes - payload bytesCopyright © 2014. All Rights Reserved.