org.apache.http
Class PostFile

Package class diagram package PostFile
java.lang.Object
  extended by org.apache.http.PostFile

public class PostFile
extends Object


Field Summary
 String AGENT
          The AGENT name
 
Constructor Summary
PostFile(String destinationUrl, InputStream srcStream)
           
 
Method Summary
 InputStream getResponseBodyAsStream()
           
 String getsolrBase()
           
 String getSrc()
           
 void post(String destinationUrl, String srcUrl)
           
 int statusCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT

public final String AGENT
The AGENT name

Constructor Detail

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
Method Detail

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