public abstract class JnlpServer3Handshake extends JnlpServerHandshake
JnlpProtocol3
.Modifier and Type | Class and Description |
---|---|
protected class |
JnlpServer3Handshake.Failure
Indicates a graceful handshake failure.
|
Modifier and Type | Field and Description |
---|---|
protected String |
cookie
If the client sends a connection cookie, that value is stored here.
|
Constructor and Description |
---|
JnlpServer3Handshake(NioChannelHub hub,
ExecutorService threadPool,
Socket socket) |
Modifier and Type | Method and Description |
---|---|
Channel |
connect()
Performs the handshake and establishes a channel.
|
String |
getNodeName()
Gets the node name reported from the other side.
|
protected abstract String |
getNodeSecret(String nodeName)
Given the node name declared by the client, determine the secret
used for authentication.
|
protected void |
validateSlave() |
createChannelBuilder, error, getHub, getIn, getOut, getRequestProperties, getRequestProperty, getSocket, success
protected String cookie
public JnlpServer3Handshake(NioChannelHub hub, ExecutorService threadPool, Socket socket) throws IOException
IOException
public String getNodeName()
public Channel connect() throws IOException, InterruptedException
IOException
InterruptedException
protected abstract String getNodeSecret(String nodeName) throws JnlpServer3Handshake.Failure
JnlpServer3Handshake.Failure
- if a fatal problem is found in determining the secret, to abort
the handshake gracefully.protected void validateSlave() throws IOException, JnlpServer3Handshake.Failure
Copyright © 2016. All rights reserved.