public interface ConnectionMonitor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
postConnect(java.net.HttpURLConnection connection)
Called just after calling connect.
|
void |
preConnect(java.net.HttpURLConnection connection)
Called just prior to calling connect.
|
void preConnect(java.net.HttpURLConnection connection)
throws ParserException
connection - The connection which is about to be connected.ParserException - This exception is thrown if the connection
monitor wants the ConnectionManager to bail out.void postConnect(java.net.HttpURLConnection connection)
throws ParserException
connection - The connection that was just connected.ParserException - This exception is thrown if the connection
monitor wants the ConnectionManager to bail out.