Class TcpCaptureServer
java.lang.Object
edu.internet2.middleware.grouper.ws.util.TcpCaptureServer
A TCP capture server listening on the port, forwards requests to another
port, and relays info back, while keeping track of the request and response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the response stringget the repsonse stringvoidServiceConnection(Socket client, int socketId, int portToConnect) service a socket connection to servervoidstartServer(int portListen, int portConnect) start the serverstartServer(int portListen, int portConnect, boolean executeInThread) start the server
-
Constructor Details
-
TcpCaptureServer
public TcpCaptureServer()
-
-
Method Details
-
startServer
start the server- Parameters:
portListen-portConnect-executeInThread- true to spawn a thread- Returns:
- thread if started one
-
startServer
public void startServer(int portListen, int portConnect) start the server- Parameters:
portListen-portConnect-
-
ServiceConnection
service a socket connection to server- Parameters:
client-socketId-portToConnect-- Throws:
IOException
-
getRequest
get the response string- Returns:
- repsonse string
-
getResponse
get the repsonse string- Returns:
- the response string
-