sg.edu.nus.comp.nlp.ims.implement
Class CClient

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.implement.CClient
All Implemented Interfaces:
IClient

public class CClient
extends java.lang.Object
implements IClient

an implemented client.

Author:
zhongzhi

Field Summary
protected  java.lang.String m_Host
           
protected  java.lang.String m_Input
           
protected  java.lang.String m_Output
           
protected  int m_Port
           
 
Constructor Summary
CClient(java.lang.String p_Host, int p_Port)
          constructor with host and port
 
Method Summary
 java.lang.String getOutput()
          get results
static void main(java.lang.String[] p_Args)
           
 void request()
          send a request
 void setInput(java.lang.String p_Input)
          set input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Port

protected int m_Port

m_Host

protected java.lang.String m_Host

m_Input

protected java.lang.String m_Input

m_Output

protected java.lang.String m_Output
Constructor Detail

CClient

public CClient(java.lang.String p_Host,
               int p_Port)
constructor with host and port

Parameters:
p_Host - host name
p_Port - port number
Method Detail

request

public void request()
             throws java.io.IOException
Description copied from interface: IClient
send a request

Specified by:
request in interface IClient
Throws:
java.io.IOException - io exception

getOutput

public java.lang.String getOutput()
Description copied from interface: IClient
get results

Specified by:
getOutput in interface IClient
Returns:
results

setInput

public void setInput(java.lang.String p_Input)
Description copied from interface: IClient
set input

Specified by:
setInput in interface IClient
Parameters:
p_Input - input

main

public static void main(java.lang.String[] p_Args)
Parameters:
p_Args - arguments