public class ProtocolFactory extends Object
Protocol plugins. Protocol plugins should define
the attribute "protocolName" with the name of the protocol that they
implement. Configuration object is used for caching. Cache key is constructed
from appending protocol name (eg. http) to constant
Protocol.X_POINT_ID.| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
ProtocolFactory(Configuration conf) |
public ProtocolFactory(Configuration conf)
public Protocol getProtocol(String urlString) throws ProtocolNotFound
Protocol implementation for a url.urlString - Url StringProtocol implementation for a given URL.ProtocolNotFound - when Protocol can not be found for urlStringCopyright © 2007, 2014, Oracle and/or its affiliates. All rights reserved.