-
- All Implemented Interfaces:
-
com.gigya.android.sdk.api.IApiRequestFactory
public class GigyaApiRequestFactory implements IApiRequestFactory
-
-
Constructor Summary
Constructors Constructor Description GigyaApiRequestFactory(Config config, ISessionService sessionService)
-
Method Summary
Modifier and Type Method Description voidsetSDK(String sdk)GigyaApiRequestcreate(String api, Map<String, Object> params)GigyaApiRequestcreate(String api, Map<String, Object> params, RestAdapter.HttpMethod httpMethod)Create a new instance of the GigyaApiRequest structure. GigyaApiRequestcreate(String api, Map<String, Object> params, RestAdapter.HttpMethod httpMethod, @Nullable() HashMap<String, String> headers)Create a new instance of the GigyaApiRequest structure. GigyaApiHttpRequestsign(GigyaApiRequest request)Sign the request prior to dispatching it. GigyaApiHttpRequestunsigned(GigyaApiRequest request)-
-
Constructor Detail
-
GigyaApiRequestFactory
GigyaApiRequestFactory(Config config, ISessionService sessionService)
-
-
Method Detail
-
create
GigyaApiRequest create(String api, Map<String, Object> params, RestAdapter.HttpMethod httpMethod)
Create a new instance of the GigyaApiRequest structure.
- Parameters:
api- Api method.params- Request parameters.httpMethod- Request HTTP method.
-
create
GigyaApiRequest create(String api, Map<String, Object> params, RestAdapter.HttpMethod httpMethod, @Nullable() HashMap<String, String> headers)
Create a new instance of the GigyaApiRequest structure.
- Parameters:
api- Api method.params- Request parameters.httpMethod- Request HTTP method.headers- Custom header map.
-
sign
GigyaApiHttpRequest sign(GigyaApiRequest request)
Sign the request prior to dispatching it.
- Parameters:
request- GigyaApiRequest instance.
-
unsigned
GigyaApiHttpRequest unsigned(GigyaApiRequest request)
-
-
-
-