org.apache.http
Class PostFile
java.lang.Object
org.apache.http.PostFile
public class PostFile
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AGENT
public final String AGENT
- The AGENT name
PostFile
public PostFile(String destinationUrl,
InputStream srcStream)
throws MalformedURLException,
IOException,
org.apache.http.HttpException,
InterruptedException,
URISyntaxException
- Parameters:
destinationUrl
- -
the url of the server listener (e.g. servlet)srcStream
- -
the source stream of the file to post
- Throws:
MalformedURLException
IOException
InterruptedException
HttpException
URISyntaxException
post
public void post(String destinationUrl,
String srcUrl)
throws MalformedURLException,
IOException,
org.apache.http.HttpException,
InterruptedException,
URISyntaxException
- Throws:
MalformedURLException
IOException
org.apache.http.HttpException
InterruptedException
URISyntaxException
statusCode
public int statusCode()
getResponseBodyAsStream
public InputStream getResponseBodyAsStream()
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
getsolrBase
public String getsolrBase()
getSrc
public String getSrc()
Copyright © 2008 The Apache Software Foundation