Class RemoteWriter
- java.lang.Object
-
- com.composum.sling.nodes.mount.remote.RemoteWriter
-
public class RemoteWriter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteWriter.ChangeSet
static class
RemoteWriter.Parameters
for simplified request parameter setupprotected class
RemoteWriter.ParameterValue
static class
RemoteWriter.ResourceChange
static class
RemoteWriter.ResourceCopy
static class
RemoteWriter.ResourceCreate
static class
RemoteWriter.ResourceDelete
static class
RemoteWriter.ResourceModify
static class
RemoteWriter.ResourceMove
static class
RemoteWriter.ResourceUpload
-
Field Summary
Fields Modifier and Type Field Description static String
POST_DATE_FORMAT
protected RemoteProvider
provider
static Set<String>
VALUE_TYPES
-
Constructor Summary
Constructors Constructor Description RemoteWriter(@NotNull RemoteProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFormValue(@NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull RemoteWriter.Parameters parameters, @NotNull String name, @NotNull Object value)
protected void
buildForm(@NotNull RemoteResource resource, @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull RemoteWriter.Parameters parameters)
boolean
commitChanges(@NotNull RemoteWriter.ChangeSet changeSet)
void
postEntity(@NotNull RemoteWriter.ResourceChange change, @Nullable String path, @NotNull org.apache.http.HttpEntity httpEntity)
boolean
postForm(@NotNull RemoteWriter.ResourceChange change, @Nullable String path, @NotNull RemoteWriter.Parameters parameters)
boolean
postMultipart(@NotNull RemoteWriter.ResourceChange change, @Nullable String path, @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull RemoteWriter.Parameters parameters)
-
-
-
Field Detail
-
provider
protected final RemoteProvider provider
-
POST_DATE_FORMAT
public static final String POST_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoteWriter
public RemoteWriter(@NotNull @NotNull RemoteProvider provider)
-
-
Method Detail
-
commitChanges
public boolean commitChanges(@NotNull @NotNull RemoteWriter.ChangeSet changeSet) throws IOException
- Throws:
IOException
-
postForm
public boolean postForm(@NotNull @NotNull RemoteWriter.ResourceChange change, @Nullable @Nullable String path, @NotNull @NotNull RemoteWriter.Parameters parameters)
-
postMultipart
public boolean postMultipart(@NotNull @NotNull RemoteWriter.ResourceChange change, @Nullable @Nullable String path, @NotNull @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull @NotNull RemoteWriter.Parameters parameters)
-
postEntity
public void postEntity(@NotNull @NotNull RemoteWriter.ResourceChange change, @Nullable @Nullable String path, @NotNull @NotNull org.apache.http.HttpEntity httpEntity)
-
buildForm
protected void buildForm(@NotNull @NotNull RemoteResource resource, @NotNull @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull @NotNull RemoteWriter.Parameters parameters)
-
addFormValue
protected void addFormValue(@NotNull @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull @NotNull RemoteWriter.Parameters parameters, @NotNull @NotNull String name, @NotNull @NotNull Object value)
-
-