Microsoft SDK for Java

WininetStreamHandlerFactory Class

The WininetStreamHandlerFactory class of the com.ms.net.wininet package contains a method that creates a URLStreamHandler object for a specified protocol.

Calls to java.net.URL.setURLStreamHandlerFactory (new com.ms.net.wininet.WininetStreamHandlerFactory( ) ) use Win32's wininet as the handler for http and https URLs. This is the same handler that is installed by default when running applets.

Also by default, http URLs are handled through sockets in Java. They do not use the Temporary Internet Files cache or similar features. If you do not use the WininetStreamHandlerFactory class, https is unsupported by default.

public class WininetStreamHandlerFactory implements java.net.URLStreamHandlerFactory
{
  // Methods
  public java.net.URLStreamHandler createURLStreamHandler(String protocol);
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.