public class ApacheEngineRequest extends AbstractEngineRequest
executed, url| Constructor and Description |
|---|
ApacheEngineRequest(ApacheEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertState() |
EngineResponse |
execute()
Execute the given
EngineRequest. |
EngineRequest |
method(java.lang.String method,
@Nullable WebBody body)
Sets the HTTP method and
WebBody for this request. |
EngineRequest |
url(java.lang.String url)
Set the url for this request.
|
getHeaders, getUrl, header, headers, headers, removeHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiturlpublic ApacheEngineRequest(ApacheEngine engine)
public EngineRequest method(java.lang.String method, @Nullable @Nullable WebBody body)
EngineRequestWebBody for this request.method - The HTTP method.body - The WebBody.EngineRequest.protected void assertState()
assertState in class AbstractEngineRequestpublic EngineRequest url(java.lang.String url)
EngineRequesturl in interface EngineRequesturl in class AbstractEngineRequesturl - The url.EngineRequest.public EngineResponse execute() throws java.io.IOException
EngineRequestEngineRequest.
This method blocks until the underlying HTTP implementation returns a response, or throws an exception.
EngineResponse for the request.java.io.IOException - Thrown by the underlying HTTP implementation in the event of an error.