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 classRemoteWriter.ChangeSetstatic classRemoteWriter.Parametersfor simplified request parameter setupprotected classRemoteWriter.ParameterValuestatic classRemoteWriter.ResourceChangestatic classRemoteWriter.ResourceCopystatic classRemoteWriter.ResourceCreatestatic classRemoteWriter.ResourceDeletestatic classRemoteWriter.ResourceModifystatic classRemoteWriter.ResourceMovestatic classRemoteWriter.ResourceUpload
-
Field Summary
Fields Modifier and Type Field Description static StringPOST_DATE_FORMATprotected RemoteProviderproviderstatic 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 voidaddFormValue(@NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull RemoteWriter.Parameters parameters, @NotNull String name, @NotNull Object value)protected voidbuildForm(@NotNull RemoteResource resource, @NotNull Map<String,org.apache.http.entity.mime.content.ContentBody> parts, @NotNull RemoteWriter.Parameters parameters)booleancommitChanges(@NotNull RemoteWriter.ChangeSet changeSet)voidpostEntity(@NotNull RemoteWriter.ResourceChange change, @Nullable String path, @NotNull org.apache.http.HttpEntity httpEntity)booleanpostForm(@NotNull RemoteWriter.ResourceChange change, @Nullable String path, @NotNull RemoteWriter.Parameters parameters)booleanpostMultipart(@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)
-
-