public final class HttpMethods extends Object
Gloop
.Constructor and Description |
---|
HttpMethods(io.toro.martini.gloop.http.GloopHttpRequestFactory requestFactory,
io.toro.martini.gloop.http.GloopResponseHandlerFactory responseHandlerFactory,
io.toro.martini.gloop.http.GloopHttpContextFactory httpClientContextFactory,
Supplier<org.apache.http.impl.client.HttpClientBuilder> httpClientBuilder) |
Modifier and Type | Method and Description |
---|---|
static io.toro.gloop.object.property.GloopModel |
http(io.toro.gloop.object.property.GloopModel requestModel,
io.toro.gloop.object.property.GloopModel authModel,
String returnAs,
String responseType,
boolean throwHttpExceptions,
io.toro.gloop.object.property.GloopModel trackableModel,
io.toro.gloop.engine.GloopExecutionContext context) |
static io.toro.gloop.object.property.GloopModel |
soap(String url,
io.toro.gloop.object.property.GloopModel authModel,
String soapAction,
String style,
String soapProtocol,
io.toro.gloop.object.property.GloopModel messageHeader,
io.toro.gloop.object.property.GloopModel messageBody,
io.toro.gloop.object.property.GloopModel trackable,
io.toro.gloop.engine.GloopExecutionContext context) |
public HttpMethods(io.toro.martini.gloop.http.GloopHttpRequestFactory requestFactory, io.toro.martini.gloop.http.GloopResponseHandlerFactory responseHandlerFactory, io.toro.martini.gloop.http.GloopHttpContextFactory httpClientContextFactory, Supplier<org.apache.http.impl.client.HttpClientBuilder> httpClientBuilder)
@GloopObjectParameter(value="output{\nresponse#io.toro.martini.http.Response{\n}\n}") @GloopComment(value="Make an http request, and parse the xml/json response into a gloop model") public static io.toro.gloop.object.property.GloopModel http(@GloopParameter(value="HTTP request to be executed") @GloopObjectParameter(value="request#io.toro.martini.http.Request{\n}") io.toro.gloop.object.property.GloopModel requestModel, @GloopParameter(value="Authentication model to be used for the request") @GloopObjectParameter(value="auth#io.toro.martini.http.Auth{\n}") io.toro.gloop.object.property.GloopModel authModel, @GloopParameter(value="Return As",choices={"InputStream","String","byte[]","GloopObject"},defaultValue="String") String returnAs, @GloopParameter(value="Response Type",choices={"Xml","Json","Auto Detect"},defaultValue="Auto Detect") String responseType, @GloopParameter(value="Boolean stating whether the exceptions should be thrown if HTTP response code >= 500",defaultValue="false") boolean throwHttpExceptions, @GloopParameter(value="Tracking metadata to be used by Martini\'s tracker engine") @GloopObjectParameter(value="trackable#io.toro.martini.tracker.Trackable{\n}") io.toro.gloop.object.property.GloopModel trackableModel, io.toro.gloop.engine.GloopExecutionContext context) throws IOException
IOException
@GloopObjectParameter(value="output{\nresponse#io.toro.martini.http.Response{\n}\n}") public static io.toro.gloop.object.property.GloopModel soap(@GloopParameter(value="URL to Request") String url, @GloopObjectParameter(value="auth#io.toro.martini.http.Auth{\n}") io.toro.gloop.object.property.GloopModel authModel, @GloopParameter(value="SOAP Action",defaultValue="") String soapAction, @GloopParameter(value="Is this an RPC operation",defaultValue="false") String style, @GloopParameter(value="Is this a SOAP 1.2 operations",defaultValue="false") String soapProtocol, @GloopParameter(value="Message Header") io.toro.gloop.object.property.GloopModel messageHeader, @GloopParameter(value="Message body") io.toro.gloop.object.property.GloopModel messageBody, @GloopObjectParameter(value="trackable#io.toro.martini.tracker.Trackable{\n}") io.toro.gloop.object.property.GloopModel trackable, io.toro.gloop.engine.GloopExecutionContext context) throws Exception
Exception
Copyright © 2019. All rights reserved.