Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| HTML Parser Home Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.htmlparser.http
Interface ConnectionMonitor

All Known Implementing Classes:
  Parser

    public interface ConnectionMonitor

Interface for HTTP connection notification callbacks.

Method Summary
`void` | `postConnect(HttpURLConnection connection)` Called just after calling connect.
`void` | `preConnect(HttpURLConnection connection)` Called just prior to calling connect.

Method Detail

### preConnect

    void preConnect(HttpURLConnection connection)
                    throws ParserException

  Called just prior to calling connect. The connection has been conditioned with proxy, URL user/password, and cookie information. It is still possible to adjust the connection, to alter the request method for example.

  Parameters:
    `connection` - The connection which is about to be connected.
  Throws:
    `ParserException` - This exception is thrown if the connection monitor wants the ConnectionManager to bail out.

### postConnect

    void postConnect(HttpURLConnection connection)
                     throws ParserException

  Called just after calling connect. The response code and header fields can be examined.

  Parameters:
    `connection` - The connection that was just connected.
  Throws:
    `ParserException` - This exception is thrown if the connection monitor wants the ConnectionManager to bail out.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| © 2005 Derrick Oswald Jun 10, 2006
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

HTML Parser is an open source library released under LGPL. |