public interface PutableResource extends CollectionResource
| Modifier and Type | Method and Description |
|---|---|
Resource |
createNew(String newName,
InputStream inputStream,
Long length,
String contentType)
Create a new resource, or overwrite an existing one
|
child, getChildrenauthenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueIdResource createNew(String newName, InputStream inputStream, Long length, String contentType) throws IOException, io.milton.http.exceptions.ConflictException, io.milton.http.exceptions.NotAuthorizedException, io.milton.http.exceptions.BadRequestException
newName - - the name to create within the collection. E.g. myFile.txtinputStream - - the data to populate the resource withlength - - the length of the datacontentType - - the content type of the data being uploaded. This can be a list, such as "image/pjpeg,image/jpeg". It
is the responsibility of the application to create a resource which also represents those content types, or a subsetIOExceptionio.milton.http.exceptions.ConflictExceptionio.milton.http.exceptions.NotAuthorizedExceptionio.milton.http.exceptions.BadRequestException