Class RequestContextFactory
java.lang.Object
com.microsoft.store.partnercenter.requestcontext.RequestContextFactory
public class RequestContextFactory extends Object
-
Method Summary
Modifier and Type Method Description IRequestContextcreate()Creates a request context object which will use a randomly generated correlation Id and a unique request Id for each partner API call.IRequestContextcreate(String locale)Creates a request context object which will use a randomly generated correlation Id, a unique request Id and provided locale for each partner API call.IRequestContextcreate(UUID correlationId)Creates a request context object with the provided correlation Id and a unique request Id for each partner API call.IRequestContextcreate(UUID correlationId, String locale)Creates a request context object with the provided correlation Id, a unique request Id and provided locale for each partner API call.IRequestContextcreate(UUID correlationId, UUID requestId)Creates a request context object with the provided correlation and request Ids.IRequestContextcreate(UUID correlationId, UUID requestId, String locale)Creates a request context object with the provided correlation, request Ids and locale.static RequestContextFactorygetInstance()Gets an instance of the request context factory.
-
Method Details
-
getInstance
Gets an instance of the request context factory.- Returns:
- An instance of the request context factory.
-
create
Creates a request context object which will use a randomly generated correlation Id and a unique request Id for each partner API call.- Returns:
- A request context object.
-
create
Creates a request context object which will use a randomly generated correlation Id, a unique request Id and provided locale for each partner API call.- Parameters:
locale- The locale.- Returns:
- A request context object.
-
create
Creates a request context object with the provided correlation Id and a unique request Id for each partner API call.- Parameters:
correlationId- The correlation Id.- Returns:
- A request context object.
-
create
Creates a request context object with the provided correlation Id, a unique request Id and provided locale for each partner API call.- Parameters:
correlationId- The correlation Id.locale- The locale- Returns:
- A request context object.
-
create
Creates a request context object with the provided correlation and request Ids.- Parameters:
correlationId- The correlation Id.requestId- The request Id.- Returns:
- A request context object.
-
create
Creates a request context object with the provided correlation, request Ids and locale.- Parameters:
correlationId- The correlation Id.requestId- The request Id.locale- The locale.- Returns:
- A request context object.
-