T - A placeholder for the type expected in the response, avoiding the requirement to cast responses. This is not
linked to the Type set on a request so a ClassCastException is possible if the type is set
incorrectly.public class ServiceWriteRequest<T> extends AbstractServiceRequest<T>
Represents a write request to be made to the Brightpearl API. Extends AbstractServiceRequest, adding the attributes
unique to a write request. This is currently only the entity to be serialised as JSON and sent as the request body.
Request instances are intended to be immutable to avoid modification while a request is being constructed, however the enclosed entity cannot be protected from external modification. Avoid modifying entities after including them in a request.
| Modifier and Type | Method and Description |
|---|---|
Object |
getEntity()
The entity to be serialised as JSON and sent as the request body.
|
getMethod, getParams, getPath, getResponseType, getRuid, getServicepublic Object getEntity()
Copyright © 2014. All Rights Reserved.