Lines Matching refs:parameters

36  *    <li>{@link #HOST_KEY} ("host") - the client data host (InetAddress) submitted on the invocation (from parameters 1-4)

74 * Parse a 32-bit IP address from the String[] of FTP command parameters.
76 * @param parameters - the String[] of command parameters. It is the concatenation
80 * representation). Thus, the six parameters for the port command would be:
85 * @return the InetAddres representing the host parsed from the parameters
87 * @throws AssertFailedException - if parameters is null or contains an insufficient number of elements
88 * @throws NumberFormatException - if one of the parameters does not contain a parsable integer
91 static InetAddress parseHost(String[] parameters) throws UnknownHostException {
92 verifySufficientParameters(parameters);
94 byte host1 = Byte.parseByte(parameters[0]);
95 byte host2 = Byte.parseByte(parameters[1]);
96 byte host3 = Byte.parseByte(parameters[2]);
97 byte host4 = Byte.parseByte(parameters[3]);
106 * Parse a 16-bit port number from the String[] of FTP command parameters.
108 * @param parameters - the String[] of command parameters. It is the concatenation
112 * representation). Thus, the six parameters for the port command would be:
117 * @return the port number parsed from the parameters
119 * @throws AssertFailedException - if parameters is null or contains an insufficient number of elements
120 * @throws NumberFormatException - if one of the parameters does not contain a parsable integer
122 static int parsePortNumber(String[] parameters) {
123 verifySufficientParameters(parameters);
125 int port1 = Integer.parseInt(parameters[4]);
126 int port2 = Integer.parseInt(parameters[5]);
133 * Verify that the parameters is not null and contains the required number of elements
134 * @param parameters - the String[] of command parameters
135 * @throws AssertFailedException - if parameters is null or contains an insufficient number of elements
137 private static void verifySufficientParameters(String[] parameters) {
138 Assert.notNull(parameters, "parameters");
139 Assert.isTrue(parameters.length >= 6, "The PORT command must contain least be 6 parameters: " + Arrays.asList(parameters));