|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.URLConnection | +--org.apache.xindice.core.request.URIMapper
URIMapper maps a URI (from whence it came) to a Xindice object. Xindice URIs can identify any of several different object types, each of which exposes a different (or slightly different) interface to the outside world.
Field Summary | |
static int |
APPLICATION
|
static int |
COLLECTION
|
static String |
DEFAULT_ENCODING
|
static int |
DOCUMENT
|
static int |
UNKNOWN
|
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
URIMapper()
Constructor for older URIMapper instances |
|
URIMapper(String uri)
Constructor for older URIMapper instances |
|
URIMapper(URL u)
Constructor for creating URIMapper instance using a standard URL |
Method Summary | |
void |
connect()
Opens a communications link to the resource referenced by this URL, if such a connection has not already been established. |
String[] |
getArguments()
getArguments returns method arguments in the form of a String array. |
Collection |
getCollection()
getCollection returns the Collection object that was resolved in the parsing of the URI. |
Container |
getContainer()
getContainer returns the Document Container that was resolved in the parsing of the URI. |
String |
getContentEncoding()
Returns the value of the content-encoding header field. |
int |
getContentLength()
Returns the value of the content-length header field. |
String |
getContentType()
Returns the value of the content-type header field. |
Database |
getDatabase()
getDatabase returns the Database that was resolved in the parsing of this URI. |
org.w3c.dom.Document |
getDocument()
getDocument returns the Document object that was resolved in the parsing of the URI. |
InputStream |
getInputStream()
Returns an input stream that reads from this open connection. |
long |
getLastModified()
Returns the value of the last-modified header field. |
String |
getMethod()
getMethod returns the method name that was resolved in the parsing of the URI. |
int |
getObjectType()
getObjectType returns the type of Object that was identified in the parsing of the URI. |
protected int |
getParsedObjectType(Collection col,
String name)
Determine the type of object. |
Properties |
getProperties()
getProperties returns the Properties object that was produced in parsing the URI's Query String. |
void |
reclaim()
reclaim prompts the Poolable object to return itself to the ObjectPool. |
void |
setPool(ObjectPool pool)
setPool passes a reference to the originating ObjectPool for this Object. |
void |
setURI(String uri)
setURI sets the URI for the URIMapper and parses it. |
protected int |
walkURI(Collection col,
String name,
int objType)
Recursive method to handle the parse of the URI and setup the instance objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final int APPLICATION
public static final int COLLECTION
public static final int DOCUMENT
public static final String DEFAULT_ENCODING
Constructor Detail |
public URIMapper(URL u)
public URIMapper(String uri) throws XindiceException
public URIMapper()
Method Detail |
public void connect()
connect
in class URLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
public String getContentEncoding()
getContentEncoding
in class URLConnection
public String getContentType()
getContentType
in class URLConnection
public int getContentLength()
getContentLength
in class URLConnection
public long getLastModified()
getLastModified
in class URLConnection
public void setPool(ObjectPool pool)
Poolable
setPool
in interface Poolable
org.apache.xindice.util.Poolable
pool
- The parent ObjectPoolpublic void reclaim()
Poolable
reclaim
in interface Poolable
public void setURI(String uri) throws XindiceException
uri
- The URIprotected int walkURI(Collection col, String name, int objType) throws XindiceException
protected int getParsedObjectType(Collection col, String name) throws XindiceException
public int getObjectType()
public Database getDatabase()
public Collection getCollection()
public org.w3c.dom.Document getDocument()
public Container getContainer()
public String getMethod()
public Properties getProperties()
public String[] getArguments()
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |