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.slf4j.Logger |
LOG |
Constructor and Description |
---|
ProtocolFactory(org.apache.hadoop.conf.Configuration conf) |
public ProtocolFactory(org.apache.hadoop.conf.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 © 2014 The Apache Software Foundation