public class ClientProtocol extends Object
Modifier and Type | Field and Description |
---|---|
protected DPCClient |
client |
static String[] |
requests
String array containing request messages used to establish the pseudo-FTP
connection
|
Constructor and Description |
---|
ClientProtocol() |
ClientProtocol(int version) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPassiveSupport(List<String> features) |
protected void |
connectV1(String secret)
connect with protocol version 2
|
protected void |
connectV2(String secret)
connect with protocol version 2
|
List<String> |
establishConnection(DPCClient client,
String secret)
establish a connection with the server
|
protected void |
initialHandshake() |
protected void |
pseudoLogin(String password) |
protected void |
readFeatures() |
public static final String[] requests
protected DPCClient client
public ClientProtocol()
public ClientProtocol(int version)
public List<String> establishConnection(DPCClient client, String secret) throws IOException, AuthorizationFailureException
client
- secret
- IOException
AuthorizationFailureException
protected void connectV2(String secret) throws IOException, AuthorizationFailureException
protected void connectV1(String secret) throws IOException, AuthorizationFailureException
protected void initialHandshake() throws IOException
IOException
protected void pseudoLogin(String password) throws IOException
IOException
protected void readFeatures() throws IOException
IOException
protected void checkPassiveSupport(List<String> features) throws ProtocolViolationException
ProtocolViolationException
Copyright © 2010–2016 UNICORE. All rights reserved.