commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Sun, 14 Jul 2002 04:40:00 GMT
dion        2002/07/13 21:40:00

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  Comments
  
  Revision  Changes    Path
  1.48      +11 -14    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
  
  Index: HttpClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- HttpClient.java	14 Jul 2002 04:31:27 -0000	1.47
  +++ HttpClient.java	14 Jul 2002 04:40:00 -0000	1.48
  @@ -114,7 +114,7 @@
        * Get my {@link HttpState state}.
        *
        * @see #setState(HttpState)
  -     *
  +     * @return the shared client state
        */
       public HttpState getState() {
           if (null == state) {
  @@ -127,7 +127,7 @@
        * Set my {@link HttpState state}.
        *
        * @see #getState()
  -     *
  +     * @param state the new state for the client
        */
       public void setState(HttpState state) {
           this.state = state;
  @@ -142,7 +142,6 @@
        * @param port the port to connect to
        *
        * @see #endSession()
  -     *
        */
       public void startSession(String host, int port) {
           startSession(host,port,false);
  @@ -170,12 +169,11 @@
        * Start an HTTP session with the server at the given
        * <i>host</i> and <i>port</i> using the given default
        * default credentials.
  +     *
        * @param host the host to connect to
        * @param port the port to connect to
        * @param creds the default credentials to use
  -     *
        * @see #endSession()
  -     *
        */
       public void startSession(String host, int port, Credentials creds) {
           startSession(host,port,creds,false);
  @@ -186,13 +184,12 @@
        * Start an HTTP or HTTPS session with the server at the given
        * <i>host</i> and <i>port</i> using the given default
        * default credentials.
  +     *
        * @param host the host to connect to
        * @param port the port to connect to
        * @param creds the default credentials to use
        * @param https when <code>true</code>, create an HTTPS session
  -     *
        * @see #endSession()
  -     *
        */
       public void startSession(String host, int port, Credentials creds,
                                boolean https) {
  @@ -301,7 +298,8 @@
        * @throws HttpException if a protocol exception occurs
        * @throws IllegalStateException if the session has not been started
        */
  -    public synchronized int executeMethod(HttpMethod method) throws IOException, HttpException
 {
  +    public synchronized int executeMethod(HttpMethod method) throws IOException,
  +    HttpException, IllegalStateException  {
   
           if (null == method) {
               throw new NullPointerException("HttpMethod parameter");
  @@ -322,7 +320,6 @@
        * End the current session, closing my the associated
        * {@link HttpConnection connection} if any.
        *
  -     *
        * @see #startSession(String, int)
        * @see #startSession(String, int, boolean)
        * @see #startSession(String, int, Credentials)
  @@ -330,7 +327,7 @@
        * @see #startSession(java.net.URL)
        * @see #startSession(java.net.URL, Credentials)
        * @see #startSession(String, int, String, int)
  -     *
  +     * @throws IOException when i/o errors occur closing the connection
        */
       public void endSession() throws IOException {
           if (log.isDebugEnabled()) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message