|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ws.util.TcpCaptureServer
public class 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 | |
---|---|
TcpCaptureServer()
|
Method Summary | |
---|---|
String |
getRequest()
get the response string |
String |
getResponse()
get the repsonse string |
void |
ServiceConnection(Socket client,
int socketId,
int portToConnect)
service a socket connection to server |
void |
startServer(int portListen,
int portConnect)
start the server |
Thread |
startServer(int portListen,
int portConnect,
boolean executeInThread)
start the server |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TcpCaptureServer()
Method Detail |
---|
public Thread startServer(int portListen, int portConnect, boolean executeInThread)
portListen
- portConnect
- executeInThread
- true to spawn a thread
public void startServer(int portListen, int portConnect)
portListen
- portConnect
- public void ServiceConnection(Socket client, int socketId, int portToConnect) throws IOException
client
- socketId
- portToConnect
-
IOException
public String getRequest()
public String getResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |