public class DataHandler extends Object implements Validatable
| Constructor and Description |
|---|
DataHandler(RCPTHandler rcpt)
Creates a new instance of DataHandler
|
| Modifier and Type | Method and Description |
|---|---|
String |
getData()
Gets the data passed from client to server
|
String |
getResponse()
Gets the response to send to client
|
void |
processMessage(Scanner inFromClient)
Processes the data message
|
Validatable |
validateOrNullify()
Validates the DataHandler or nullifies it if invalid
|
public DataHandler(RCPTHandler rcpt)
rcpt - The instance of RCPT handler to verifypublic void processMessage(Scanner inFromClient)
inFromClient - The input stream from the clientpublic String getData()
public String getResponse()
getResponse in interface Validatablepublic Validatable validateOrNullify()
validateOrNullify in interface ValidatableCopyright © 2019. All rights reserved.