public class JnlpServerHandshake extends Object
Modifier and Type | Field and Description |
---|---|
protected NioChannelHub |
hub
Useful for creating a
Channel with NIO as the underlying transport. |
protected DataInputStream |
in
Wrapping Socket input stream.
|
protected PrintWriter |
out
For writing handshaking response.
|
protected Properties |
request
Bag of properties the JNLP agent have sent us during the hand-shake.
|
protected Socket |
socket
Socket connection to the slave.
|
Modifier | Constructor and Description |
---|---|
protected |
JnlpServerHandshake(JnlpServerHandshake rhs)
Copy constructor
|
protected |
JnlpServerHandshake(NioChannelHub hub,
ExecutorService threadPool,
Socket socket) |
Modifier and Type | Method and Description |
---|---|
ChannelBuilder |
createChannelBuilder(String nodeName) |
void |
error(String msg)
Sends the error output and bail out.
|
NioChannelHub |
getHub() |
DataInputStream |
getIn() |
PrintWriter |
getOut() |
Properties |
getRequestProperties() |
String |
getRequestProperty(String name) |
Socket |
getSocket() |
void |
success(Properties response)
Tell the client that the server
is happy with the handshaking and is ready to move on to build a channel.
|
protected final NioChannelHub hub
Channel
with NIO as the underlying transport.protected final Socket socket
protected final DataInputStream in
protected final PrintWriter out
DataOutputStream
is preferred for newer
protocols.protected final Properties request
protected JnlpServerHandshake(NioChannelHub hub, ExecutorService threadPool, Socket socket) throws IOException
IOException
protected JnlpServerHandshake(JnlpServerHandshake rhs)
public NioChannelHub getHub()
public Socket getSocket()
public DataInputStream getIn()
public PrintWriter getOut()
public Properties getRequestProperties()
public void error(String msg) throws IOException
IOException
public void success(Properties response)
public ChannelBuilder createChannelBuilder(String nodeName)
Copyright © 2017. All rights reserved.