Class StreamHandlerFactory
java.lang.Object
com.google.appengine.tools.development.StreamHandlerFactory
- All Implemented Interfaces:
URLStreamHandlerFactory
A
URLStreamHandlerFactory which installs
URLStreamHandlers that App Engine needs to support.
(For example, the "http" and "https" protocols). This factory returns
handlers that delegate to the
URLFetchService when running in an
App Engine container, and returns the default handlers when running outside
an App Engine container.-
Method Summary
Modifier and TypeMethodDescriptioncreateURLStreamHandler(String protocol) static voidinstall()Installs this StreamHandlerFactory.
-
Method Details
-
install
public static void install()Installs this StreamHandlerFactory.- Throws:
IllegalStateException- if a factory has already been installed, and it is not a StreamHandlerFactory.RuntimeException- if an unexpected, catastrophic failure occurs while installing the handler.
-
createURLStreamHandler
- Specified by:
createURLStreamHandlerin interfaceURLStreamHandlerFactory
-