com.izforge.izpack.util
Class PortProcessor

java.lang.Object
  extended bycom.izforge.izpack.util.PortProcessor
All Implemented Interfaces:
Processor

public class PortProcessor
extends java.lang.Object
implements Processor

Checks whether the value of the field comtemt is a port and is free. If false the next free port will be searched.

Author:
Thorsten Kamann

Constructor Summary
PortProcessor()
           
 
Method Summary
private  java.lang.String getReturnValue(ProcessingClient client, java.lang.String host, java.lang.String port)
          Creates the return value
 java.lang.String process(ProcessingClient client)
          Processes the contend of an input field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortProcessor

public PortProcessor()
Method Detail

process

public java.lang.String process(ProcessingClient client)
Description copied from interface: Processor
Processes the contend of an input field.

Specified by:
process in interface Processor
Parameters:
client - the client object using the services of this processor.
Returns:
The result of the encryption.

getReturnValue

private java.lang.String getReturnValue(ProcessingClient client,
                                        java.lang.String host,
                                        java.lang.String port)
Creates the return value

Parameters:
client - The ProcessingClient