SyntaxHighlighter JS

2013-01-13

Use java.net.HttpURLConnection in WebLogic

By default in WebLogic, when using the API java.net.URL.openConnection(), the subclass returned is weblogic.net.http.HttpURLConnection .  This class may exhibit unwanted behavior especially in handling SSL connections.

To use the standard Sun java.net.HttpURLConnection in WebLogic, use this Java code


  new URL(null,
          serverURL,
          new sun.net.www.protocol.https.Handler());

1 comment: