|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionProcessor
A connection pre- and post-processor.
NavigatorExtensionContext.addConnectionProcessor(ConnectionProcessor)| Field Summary | |
|---|---|
static ConnectionProcessor[] |
EMPTY_ARRAY
|
| Method Summary | |
|---|---|
java.net.URLConnection |
processPostConnection(java.net.URLConnection connection)
This method is called after a connection has been established. |
java.net.URLConnection |
processPreConnection(java.net.URLConnection connection)
This method is called after the request method and standard headers have been set, and before a connection has been established or content has been posted. |
| Field Detail |
|---|
static final ConnectionProcessor[] EMPTY_ARRAY
| Method Detail |
|---|
java.net.URLConnection processPreConnection(java.net.URLConnection connection)
connection - A URL connection.
connection object passed
as a parameter. A different connection object can be returned
if that's necessary (e.g. wrapping the original connection
in order to process its POST stream).java.net.URLConnection processPostConnection(java.net.URLConnection connection)
Note: Reading from the input stream of the connection must not be done, unless a replacement stream is provided in the connection that is returned by the method.
connection - A URL connection.
connection object passed
as a parameter. A different connection object can be returned
if that's necessary (e.g. wrapping the original connection
in order to process its input stream).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||