|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.example.proxy.Main
public class Main
(Entry point) Demonstrates how to write a very simple tunneling proxy using MINA. The proxy only logs all data passing through it. This is only suitable for text based protocols since received data will be converted into strings before being logged.
Start a proxy like this:
org.apache.mina.example.proxy.Main 12345 www.google.com 80
and open http://localhost:12345 in a
browser window.
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |