|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.webdav.java.Bean
org.abstracthorizon.danube.webdav.java.Delegate
public abstract class Delegate
This class adds several methods to the bean (path) object. Adapter is, then, using these methods to obtain various attributes of the object.
| Field Summary | |
|---|---|
protected String |
objectPath
Parent object path - parent portion of the supplied path |
| Fields inherited from class org.abstracthorizon.danube.webdav.java.Bean |
|---|
path |
| Constructor Summary | |
|---|---|
Delegate(String path)
Constructor |
|
| Method Summary | |
|---|---|
String |
getContentType(JavaWebDAVResourceAdapter adapter)
Returns content type. |
InputStream |
getInputStream(JavaWebDAVResourceAdapter adapter)
Returns input stream of the object/field's value. |
InputStream |
getInputStream(JavaWebDAVResourceAdapter adapter,
long from,
long length)
Returns input stream of a given range of the object/field's value. |
OutputStream |
getOutputStream(JavaWebDAVResourceAdapter adapter)
Returns output stream of the object/field's value. |
OutputStream |
getOutputStream(JavaWebDAVResourceAdapter adapter,
long from,
long length)
Returns output stream of the object/field's value. |
String |
getResourceETag(JavaWebDAVResourceAdapter adapter)
Returns etag of the object. |
abstract int |
resourceLength(JavaWebDAVResourceAdapter adapter)
Returns resource length |
| Methods inherited from class org.abstracthorizon.danube.webdav.java.Bean |
|---|
equals, getPath, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String objectPath
| Constructor Detail |
|---|
public Delegate(String path)
path - path to the object| Method Detail |
|---|
public abstract int resourceLength(JavaWebDAVResourceAdapter adapter)
adapter - adapter it is called from
public String getResourceETag(JavaWebDAVResourceAdapter adapter)
adapter - adapter
public InputStream getInputStream(JavaWebDAVResourceAdapter adapter)
null
adapter - adapter
null
public InputStream getInputStream(JavaWebDAVResourceAdapter adapter,
long from,
long length)
null
adapter - adapterfrom - offsetlength - length
nullpublic OutputStream getOutputStream(JavaWebDAVResourceAdapter adapter)
null
adapter - adapter
null
public OutputStream getOutputStream(JavaWebDAVResourceAdapter adapter,
long from,
long length)
null
adapter - adapterfrom - offsetlength - length
nullpublic String getContentType(JavaWebDAVResourceAdapter adapter)
adapter - adapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||