Class StitchAppRequestClientImpl
- java.lang.Object
-
- com.mongodb.stitch.core.internal.net.BaseStitchRequestClient
-
- com.mongodb.stitch.core.internal.net.StitchAppRequestClientImpl
-
- All Implemented Interfaces:
StitchRequestClient
public class StitchAppRequestClientImpl extends BaseStitchRequestClient
-
-
Constructor Summary
Constructors Constructor Description StitchAppRequestClientImpl(String clientAppId, String baseUrl, Transport transport, Long defaultRequestTimeout)
-
Method Summary
Modifier and Type Method Description ResponsedoRequest(StitchRequest stitchReq)Performs a request against a Stitch app server determined by the deployment model of the underlying app.EventStreamdoStreamRequest(StitchRequest stitchReq)Performs a streaming request against a Stitch app server determined by the deployment model of the underlying app.-
Methods inherited from class com.mongodb.stitch.core.internal.net.BaseStitchRequestClient
close
-
-
-
-
Method Detail
-
doRequest
public Response doRequest(StitchRequest stitchReq)
Performs a request against a Stitch app server determined by the deployment model of the underlying app. Throws a Stitch specific exception if the request fails.- Parameters:
stitchReq- the request to perform.- Returns:
- a
Responseto the request.
-
doStreamRequest
public EventStream doStreamRequest(StitchRequest stitchReq)
Performs a streaming request against a Stitch app server determined by the deployment model of the underlying app. Throws a Stitch specific exception if the request fails.- Parameters:
stitchReq- the request to perform.- Returns:
- an
EventStreamthat will provide response events.
-
-