|
Xindice API | |||||||||
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 int |
DOCUMENT
|
static int |
UNKNOWN
|
static int |
XMLOBJECT
|
Constructor Summary | |
URIMapper()
Constructor for older URIMapper instances |
|
URIMapper(java.lang.String uri)
Constructor for older URIMapper instances |
|
URIMapper(java.net.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. |
java.lang.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. |
java.lang.String |
getContentEncoding()
Returns the value of the content-encoding header field. |
int |
getContentLength()
Returns the value of the content-length header field. |
java.lang.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. |
java.io.InputStream |
getInputStream()
Returns an input stream that reads from this open connection. |
long |
getLastModified()
Returns the value of the last-modified header field. |
java.lang.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. |
java.util.Properties |
getProperties()
getProperties returns the Properties object that was produced in parsing the URI's Query String. |
XMLObject |
getXMLObject()
getXMLObject returns the XMLObject that was resolved in the parsing of the URI. |
java.lang.Object |
invokeRequest()
|
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(java.lang.String uri)
setURI sets the URI for the URIMapper and parses it. |
Methods inherited from class java.net.URLConnection |
getAllowUserInteraction, getContent, getContent, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getOutputStream, getPermission, getRequestProperty, getURL, getUseCaches, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
equals, 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 int XMLOBJECT
Constructor Detail |
public URIMapper(java.net.URL u)
public URIMapper(java.lang.String uri) throws XindiceException
public URIMapper()
Method Detail |
public java.lang.Object invokeRequest() throws XMLObjectException
public void connect()
connect
in class java.net.URLConnection
public java.io.InputStream getInputStream()
getInputStream
in class java.net.URLConnection
public java.lang.String getContentEncoding()
getContentEncoding
in class java.net.URLConnection
public java.lang.String getContentType()
getContentType
in class java.net.URLConnection
public int getContentLength()
getContentLength
in class java.net.URLConnection
public long getLastModified()
getLastModified
in class java.net.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(java.lang.String uri) throws XindiceException
uri
- The URIpublic int getObjectType()
public Database getDatabase()
public Collection getCollection()
public org.w3c.dom.Document getDocument()
public Container getContainer()
public XMLObject getXMLObject()
public java.lang.String getMethod()
public java.util.Properties getProperties()
public java.lang.String[] getArguments()
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |