Package org.htmlunit
Interface WebConnection
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
DebuggingWebConnection,FalsifyingWebConnection,HttpWebConnection,MockWebConnection,WebConnectionWrapper
public interface WebConnection extends java.lang.AutoCloseableAn object which handles the actual communication portion of page retrieval/submission.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()WebResponsegetResponse(WebRequest request)Submits a request and retrieves a response.
-
-
-
Method Detail
-
getResponse
WebResponse getResponse(WebRequest request) throws java.io.IOException
Submits a request and retrieves a response.- Parameters:
request- the request- Returns:
- the response to the request defined by the specified request
- Throws:
java.io.IOException- if an IO error occurs
-
close
void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-