|
|||||||||
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 | |
---|---|
java.lang.String |
getRequest()
get the response string |
java.lang.String |
getResponse()
get the repsonse string |
void |
ServiceConnection(java.net.Socket client,
int socketId,
int portToConnect)
service a socket connection to server |
void |
startServer(int portListen,
int portConnect)
start the server |
java.lang.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 java.lang.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(java.net.Socket client, int socketId, int portToConnect) throws java.io.IOException
client
- socketId
- portToConnect
-
java.io.IOException
public java.lang.String getRequest()
public java.lang.String getResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |