public class ServerProtocol extends Object
Modifier and Type | Field and Description |
---|---|
protected DPCServer.Connection |
connection |
protected String |
secret |
static String |
VER |
Constructor and Description |
---|
ServerProtocol() |
Modifier and Type | Method and Description |
---|---|
protected UFTPBaseRequest |
authenticateV1(DPCServer.Connection connection)
Authorize the client by creating a data connection and reading the
secret from the new connection.
|
UFTPBaseRequest |
establish(DPCServer.Connection connection) |
int |
getProtocolVersion() |
protected void |
pseudoLogin(String userLine) |
protected UFTPTransferRequest |
sendFeatures() |
protected void |
sendVersion() |
public static final String VER
protected DPCServer.Connection connection
protected String secret
public UFTPBaseRequest establish(DPCServer.Connection connection) throws IOException, AuthorizationFailureException
protected UFTPTransferRequest sendFeatures() throws IOException
IOException
protected void sendVersion() throws IOException
IOException
protected void pseudoLogin(String userLine) throws IOException
IOException
protected UFTPBaseRequest authenticateV1(DPCServer.Connection connection) throws IOException, AuthorizationFailureException
connection
- IOException
AuthorizationFailureException
public int getProtocolVersion()
Copyright © 2010–2018 UNICORE. All rights reserved.