An example of using regular expression in Eclipse WSE (web service explorer)
Fixed the Eclipse WTP bug 118019: "WS-Explorer ignores non-proxy host settings" by using regular expression.https://bugs.eclipse.org/bugs/show_bug.cgi?id=118019
See method private boolean isHostInNonProxyHosts(String host, String nonProxyHosts, boolean caseSensitive)
and createPatternFromString(String str)
in plugin org.eclipse.wst.ws.explorer
http://dev.eclipse.org/viewcvs/index.cgi/wst/components/ws/plugins/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/HTTPTransport.java?rev=HEAD&cvsroot=WebTools_Project&content-type=text/vnd.viewcvs-markup
On the other hand, there is a bad example in Apache Axis,
see following:
2006-2-23
- Docjar: org/apache/axis/components/net/DefaultSocketFactory.java #
Bad example of searching and matching text. The method isHostInNonProxyList() is too complicated, error-prone, and inefficient.
the English version on TSS of above one on CSDN