Package org.xj3d.ui.awt.net.content
Class AWTContentHandlerFactory
java.lang.Object
org.web3d.net.content.VRMLContentHandlerFactory
org.xj3d.ui.awt.net.content.AWTContentHandlerFactory
- All Implemented Interfaces:
org.ietf.uri.ContentHandlerFactory
A
VRMLContentHandlerFactory
subclass supporting
AWT UI toolkit dependent content handlers.- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionAWTContentHandlerFactory
(BrowserCore browser, WorldLoaderManager wlm) Create a default content handler factory that does not chain to any further packages.AWTContentHandlerFactory
(BrowserCore browser, WorldLoaderManager wlm, org.ietf.uri.ContentHandlerFactory fac) Create a content handler factory that may delegate to another factory if this one cannot support the content types requested. -
Method Summary
Modifier and TypeMethodDescriptionorg.ietf.uri.ContentHandler
createContentHandler
(String contentType) Create a content handler for the given mime type.Methods inherited from class org.web3d.net.content.VRMLContentHandlerFactory
getWrappedFactory
-
Constructor Details
-
AWTContentHandlerFactory
Create a default content handler factory that does not chain to any further packages. This is the same as callingVRMLContentHandlerFactory(factory, clk, null)
.- Parameters:
browser
- The core representation of the browserwlm
- Loader manager for doing async calls
-
AWTContentHandlerFactory
public AWTContentHandlerFactory(BrowserCore browser, WorldLoaderManager wlm, org.ietf.uri.ContentHandlerFactory fac) Create a content handler factory that may delegate to another factory if this one cannot support the content types requested. If the reference is null, then there is no chained factory.- Parameters:
browser
- The core representation of the browserwlm
- Loader manager for doing async callsfac
- The factory to delegate to if we fail
-
-
Method Details
-
createContentHandler
Create a content handler for the given mime type. If this cannot create a handler then the request will be handled by it's parent.- Specified by:
createContentHandler
in interfaceorg.ietf.uri.ContentHandlerFactory
- Overrides:
createContentHandler
in classVRMLContentHandlerFactory
- Parameters:
contentType
- The MIME type of the handler needed- Returns:
- A valid content handler for the type or null
-