Package org.htmlunit
Interface WebConnection
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DebuggingWebConnection
,FalsifyingWebConnection
,HttpWebConnection
,MockWebConnection
,WebConnectionWrapper
An object which handles the actual communication portion of page retrieval/submission.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getResponse
(WebRequest request) Submits a request and retrieves a response.
-
Method Details
-
getResponse
Submits a request and retrieves a response.- Parameters:
request
- the request- Returns:
- the response to the request defined by the specified request
- Throws:
IOException
- if an IO error occurs
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-