netty5/codec-socks/src/main/java/io/netty/handler/codec/socks
Trustin Lee 223efc5f99 Clean up the examples
Motivation:

The examples have not been updated since long time ago, showing various
issues fixed in this commit.

Modifications:

- Overall simplification to reduce LoC
  - Use system properties to get options instead of parsing args.
  - Minimize option validation
  - Just use System.out/err instead of Logger
  - Do not pass config as parameters - just access it directly
  - Move the main logic to main(String[]) instead of creating a new
    instance meaninglessly
    - Update netty-build-21 to make checkstyle not complain
  - Remove 'throws Exception' clause if possible
- Line wrap at 120 (previously at 80)
- Add an option to enable SSL for most examples
- Use ChannelFuture.sync() instead of await()
- Use System.out for the actual result. Use System.err otherwise.
- Delete examples that are not very useful:
  - applet
  - websocket/html5
  - websocketx/sslserver
  - localecho/multithreaded
- Add run-example.sh which simplifies launching an example from command
  line
- Rewrite FileServer example

Result:

Shorter and simpler examples.  A user can focus more on what it actually
does than miscellaneous stuff.  A user can launch an example very
easily.
2014-05-23 17:13:09 +09:00
..
package-info.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
SocksAddressType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksAuthRequest.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksAuthRequestDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksAuthResponse.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksAuthResponseDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksAuthScheme.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksAuthStatus.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksCmdRequest.java [#2428] Proper fix of incorrect port range check 2014-04-30 08:17:40 +02:00
SocksCmdRequestDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksCmdResponse.java Correctly handle SocksCmdResponse. Related to #2428 2014-04-30 10:44:17 +02:00
SocksCmdResponseDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksCmdStatus.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksCmdType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksCommonUtils.java Fix the potential copyright issue in SocksCommonUtils 2014-02-06 15:00:06 -08:00
SocksInitRequest.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksInitRequestDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksInitResponse.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksInitResponseDecoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksMessage.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksMessageEncoder.java Clean up the examples 2014-05-23 17:13:09 +09:00
SocksMessageType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksProtocolVersion.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksRequest.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksRequestType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksResponse.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksResponseType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksSubnegotiationVersion.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
UnknownSocksRequest.java [#787] Move the socks package to the right place 2012-12-04 09:14:05 +01:00
UnknownSocksResponse.java [#787] Move the socks package to the right place 2012-12-04 09:14:05 +01:00