|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.krecan.m2_proxy.resource.AbstractResource
net.krecan.m2_proxy.repository.httpclient.HttpClientResource
public class HttpClientResource
Special resource implementation for HttpClient
Constructor Summary | |
---|---|
HttpClientResource(String logicalName,
org.apache.commons.httpclient.methods.GetMethod method)
|
Method Summary | |
---|---|
void |
copyToStream(OutputStream outputStream)
Copies the resource to the output stream. |
long |
getLastModified()
Is not supported, since we do not need it yet. |
long |
getLength()
Returns length of the resource |
protected org.apache.commons.httpclient.methods.GetMethod |
getMethod()
|
void |
release()
Releases all system resources blocked by this resource :-) It HAS to be called after using the resource. |
protected void |
setMethod(org.apache.commons.httpclient.methods.GetMethod method)
|
Methods inherited from class net.krecan.m2_proxy.resource.AbstractResource |
---|
finalize, getLogicalName, isReleased, setLogicalName, setReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpClientResource(String logicalName, org.apache.commons.httpclient.methods.GetMethod method)
Method Detail |
---|
public long getLength()
Resource
public void copyToStream(OutputStream outputStream) throws IOException
Resource
IOException
protected org.apache.commons.httpclient.methods.GetMethod getMethod()
protected void setMethod(org.apache.commons.httpclient.methods.GetMethod method)
public void release()
Resource
public long getLastModified()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |