RequestContextFactory Class

  • java.lang.Object
    • com.microsoft.store.partnercenter.requestcontext.RequestContextFactory

public class RequestContextFactory

Method Summary

Modifier and Type Method and Description
IRequestContext create()

Creates a request context object which will use a randomly generated correlation Id and a unique request Id for each partner API call.

IRequestContext create(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.

IRequestContext create(UUID correlationId)

Creates a request context object with the provided correlation Id and a unique request Id for each partner API call.

IRequestContext create(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.

IRequestContext create(UUID correlationId, UUID requestId)

Creates a request context object with the provided correlation and request Ids.

IRequestContext create(UUID correlationId, UUID requestId, String locale)

Creates a request context object with the provided correlation, request Ids and locale.

static RequestContextFactory getInstance()

Gets an instance of the request context factory.

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Method Details

create

public IRequestContext 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

public IRequestContext create(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.

Parameters:

locale - The locale.

Returns:

A request context object.

create

public IRequestContext create(UUID correlationId)

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

public IRequestContext create(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.

Parameters:

correlationId - The correlation Id.
locale - The locale

Returns:

A request context object.

create

public IRequestContext create(UUID correlationId, UUID requestId)

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

public IRequestContext create(UUID correlationId, UUID requestId, String locale)

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.

getInstance

public static RequestContextFactory getInstance()

Gets an instance of the request context factory.

Returns:

An instance of the request context factory.

Applies to