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 Stringcharsetprotected InputStreamcontentprotected Stringfilenamestatic StringFILENAME_PROPstatic StringJCR_DATA_PROPstatic StringLAST_MOD_PROPstatic StringMIME_TYPE_PROPprotected StringmimeType-
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 booleancommit(@NotNull RemoteWriter writer)@NotNull com.composum.sling.nodes.mount.remote.RemoteWriter.ChangeTypegetChangeType()
-
-
-
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:
getChangeTypein classRemoteWriter.ResourceChange
-
commit
protected boolean commit(@NotNull @NotNull RemoteWriter writer) throws IOException- Specified by:
commitin classRemoteWriter.ResourceChange- Throws:
IOException
-
-