public abstract class BatchChangeSetPart extends Object
BatchChangeSetPart represents a change request within a Change Set
Modifier and Type | Class and Description |
---|---|
static class |
BatchChangeSetPart.BatchChangeSetPartBuilder |
Constructor and Description |
---|
BatchChangeSetPart() |
Modifier and Type | Method and Description |
---|---|
static BatchChangeSetPart.BatchChangeSetPartBuilder |
body(byte[] body) |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
body(String body) |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
contentId(String contentId) |
abstract Object |
getBody() |
abstract byte[] |
getBodyAsBytes() |
abstract String |
getContentId() |
abstract Map<String,String> |
getHeaders() |
abstract String |
getMethod() |
abstract String |
getUri() |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
headers(Map<String,String> headers) |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
method(String method) |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
newBuilder() |
static BatchChangeSetPart.BatchChangeSetPartBuilder |
uri(String uri) |
public abstract Object getBody()
public abstract byte[] getBodyAsBytes()
public abstract String getUri()
public abstract String getMethod()
public abstract String getContentId()
public static BatchChangeSetPart.BatchChangeSetPartBuilder headers(Map<String,String> headers)
headers
- public static BatchChangeSetPart.BatchChangeSetPartBuilder body(String body)
body
- a change request bodypublic static BatchChangeSetPart.BatchChangeSetPartBuilder body(byte[] body)
body
- a change request bodypublic static BatchChangeSetPart.BatchChangeSetPartBuilder uri(String uri)
uri
- should not be nullpublic static BatchChangeSetPart.BatchChangeSetPartBuilder method(String method)
method
- MUST be the PUT, POST, MERGE, DELETE or PATCH methodpublic static BatchChangeSetPart.BatchChangeSetPartBuilder contentId(String contentId)
contentId
- can be used to identify the different request within a the batchpublic static BatchChangeSetPart.BatchChangeSetPartBuilder newBuilder()
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.