Groovy Documentation

betamax.server
[Groovy] Class HttpProxyServer

java.lang.Object
  betamax.server.HttpProxyServer
All Implemented Interfaces:
org.apache.http.nio.protocol.EventListener

@Log4j
class HttpProxyServer
extends java.lang.Object

A simple proxy server that can run in the background. The code here is based on the "Basic non-blocking HTTP server" example from http://hc.apache.org/httpcomponents-core-ga/examples.html


Property Summary
int port

 
Constructor Summary
HttpProxyServer()

 
Method Summary
void connectionClosed(org.apache.http.nio.NHttpConnection conn)

void connectionOpen(org.apache.http.nio.NHttpConnection conn)

void connectionTimeout(org.apache.http.nio.NHttpConnection conn)

void fatalIOException(java.io.IOException ex, org.apache.http.nio.NHttpConnection conn)

void fatalProtocolException(org.apache.http.HttpException ex, org.apache.http.nio.NHttpConnection conn)

void start(Recorder recorder)

void stop()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

port

final int port


 
Constructor Detail

HttpProxyServer

HttpProxyServer()


 
Method Detail

connectionClosed

void connectionClosed(org.apache.http.nio.NHttpConnection conn)


connectionOpen

void connectionOpen(org.apache.http.nio.NHttpConnection conn)


connectionTimeout

void connectionTimeout(org.apache.http.nio.NHttpConnection conn)


fatalIOException

void fatalIOException(java.io.IOException ex, org.apache.http.nio.NHttpConnection conn)


fatalProtocolException

void fatalProtocolException(org.apache.http.HttpException ex, org.apache.http.nio.NHttpConnection conn)


start

void start(Recorder recorder)


stop

void stop()


 

Groovy Documentation