Apr 02

HttpClient does not use the standard Java system properties for specifying proxy details.

Specifying the proxy details when using HttpClient is achieved using the host configuration of the client as shown in the following snippet.

HttpClient client = new HttpClient();
client.getHostConfiguration().setProxy("proxy1.objects.com.au", 8001);

written by objects \\ tags: , ,

Dec 18

No, it has not been used since Java 1.1. The presence of proxyHost system property is used to determine whether to use a proxy or not.

written by objects \\ tags: ,

Dec 14

The underlying Object can be found using the LazyInitializer instance available from the proxy.

HibernateProxy proxy = (HibernateProxy) o;
Object actual = proxy.getHibernateLazyInitializer().getImplementation();

written by objects \\ tags: , , , ,