Class RemoteWriter.ResourceUpload
- java.lang.Object
-
- com.composum.sling.nodes.mount.remote.RemoteWriter.ResourceChange
-
- com.composum.sling.nodes.mount.remote.RemoteWriter.ResourceUpload
-
- Enclosing class:
- RemoteWriter
public static class RemoteWriter.ResourceUpload extends RemoteWriter.ResourceChange
-
-
Field Summary
Fields Modifier and Type Field Description protected String
charset
protected InputStream
content
protected String
filename
static String
FILENAME_PROP
static String
JCR_DATA_PROP
static String
LAST_MOD_PROP
static String
MIME_TYPE_PROP
protected String
mimeType
-
Fields inherited from class com.composum.sling.nodes.mount.remote.RemoteWriter.ResourceChange
resource
-
-
Constructor Summary
Constructors Constructor Description ResourceUpload(@NotNull RemoteResource resource, @NotNull InputStream content, @Nullable String filename, @Nullable String mimeType, @Nullable String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
commit(@NotNull RemoteWriter writer)
@NotNull com.composum.sling.nodes.mount.remote.RemoteWriter.ChangeType
getChangeType()
-
-
-
Field Detail
-
JCR_DATA_PROP
public static final String JCR_DATA_PROP
- See Also:
- Constant Field Values
-
FILENAME_PROP
public static final String FILENAME_PROP
- See Also:
- Constant Field Values
-
MIME_TYPE_PROP
public static final String MIME_TYPE_PROP
- See Also:
- Constant Field Values
-
LAST_MOD_PROP
public static final String LAST_MOD_PROP
- See Also:
- Constant Field Values
-
content
protected final InputStream content
-
filename
protected final String filename
-
mimeType
protected final String mimeType
-
charset
protected final String charset
-
-
Constructor Detail
-
ResourceUpload
public ResourceUpload(@NotNull @NotNull RemoteResource resource, @NotNull @NotNull InputStream content, @Nullable @Nullable String filename, @Nullable @Nullable String mimeType, @Nullable @Nullable String charset)
-
-
Method Detail
-
getChangeType
@NotNull public @NotNull com.composum.sling.nodes.mount.remote.RemoteWriter.ChangeType getChangeType()
- Specified by:
getChangeType
in classRemoteWriter.ResourceChange
-
commit
protected boolean commit(@NotNull @NotNull RemoteWriter writer) throws IOException
- Specified by:
commit
in classRemoteWriter.ResourceChange
- Throws:
IOException
-
-