org.erights.e.elang.interp
Class URLGetter

java.lang.Object
  |
  +--org.erights.e.elib.serial.BaseLoader
        |
        +--org.erights.e.elang.interp.URLGetter
All Implemented Interfaces:
Loader, Uncaller

public class URLGetter
extends BaseLoader

Untamed: An instance of this exists for each of the standard URL protocol, and is bound to corresponding protocol name. For example, "http:" is bound to a URLGetter for the http protocol. By special dispensation, the URLGetter for the "file:" protocol is bound to "fileUrl:", since "file:" is reserved for the FileGetter.

Author:
Mark S. Miller
See Also:
org.erights.e.meta.java.io.FileGetter

Field Summary
private  String myProtocol
          "protocol" as in "file:" or "http:"
 
Constructor Summary
(package private) URLGetter(String protocol)
           
 
Method Summary
 Object get(String uriBody)
          Enabled:
 Object[] optUncall(Object obj)
          Enabled:
 String protocol()
          Enabled:
 String toString()
          Suppressed:
 
Methods inherited from class org.erights.e.elib.serial.BaseLoader
getOptWrappingUncall, optUnget, ungetToUncall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myProtocol

private final String myProtocol
"protocol" as in "file:" or "http:"

Constructor Detail

URLGetter

URLGetter(String protocol)
Method Detail

get

public Object get(String uriBody)
Enabled:


optUncall

public Object[] optUncall(Object obj)
Enabled:

Parameters:
obj -
Returns:

protocol

public String protocol()
Enabled:


toString

public String toString()
Suppressed:

Overrides:
toString in class Object
Returns:
a string representation of the object.


comments?