RequestContext Class
- java.
lang. Object - com.
microsoft. store. partnercenter. requestcontext. RequestContext
- com.
Implements
public class RequestContext implements IRequestContext
Request context implementation.
Constructor Summary
| Constructor | Description |
|---|---|
| RequestContext() |
Initializes a new instance of the Request |
| RequestContext(String locale) |
Initializes a new instance of the Request |
| RequestContext(UUID correlationId) |
Initializes a new instance of the Request |
| RequestContext(UUID correlationId, String locale) |
Initializes a new instance of the Request |
| RequestContext(UUID correlationId, UUID requestId, String locale) |
Initializes a new instance of the Request |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.UUID |
getCorrelationId()
Gets the correlation identifier. |
| java.lang.String |
getLocale()
Gets the locale. |
| java.util.UUID |
getRequestId()
Gets the request identifier. |
| void |
setCorrelationId(UUID value)
Sets the correlation identifier. |
| void |
setLocale(String value)
Sets the locale. |
| void |
setRequestId(UUID value)
Sets the request identifier. |
| java.lang.String |
toString()
Returns a string representation of the request context. |
Inherited Members
Constructor Details
RequestContext
public RequestContext()
Initializes a new instance of the RequestContext class. Correlation Id will be generated. The request Id will be automatically generated for each service API call.
RequestContext
public RequestContext(String locale)
Initializes a new instance of the RequestContext class with provided locale. Correlation Id will be generated. The request Id will be automatically generated for each service API call.
Parameters:
RequestContext
public RequestContext(UUID correlationId)
Initializes a new instance of the RequestContext class with a correlation Id. The request Id will be automatically generated and a default Locale is set for each service API call.
Parameters:
RequestContext
public RequestContext(UUID correlationId, String locale)
Initializes a new instance of the RequestContext class with a correlation Id and the provided locale. The request Id will be automatically generated for each service API call.
Parameters:
RequestContext
public RequestContext(UUID correlationId, UUID requestId, String locale)
Initializes a new instance of the RequestContext class with the given correlation, request identifier and locale.
Parameters:
Method Details
getCorrelationId
public UUID getCorrelationId()
Gets the correlation identifier. This identifier is used to group logical operations together.
getLocale
public String getLocale()
Gets the locale.
Returns:
getRequestId
public UUID getRequestId()
Gets the request identifier. Uniquely identifies the operation.
Returns:
setCorrelationId
public void setCorrelationId(UUID value)
Sets the correlation identifier.
Parameters:
setLocale
public void setLocale(String value)
Sets the locale.
Parameters:
setRequestId
public void setRequestId(UUID value)
Sets the request identifier.
Parameters:
toString
public String toString()
Returns a string representation of the request context.
Overrides:
RequestContext.toString()Returns: