public class AttachmentResourceHandler extends DefaultResourceHandler<CreateAttachmentParameter,DefaultParameter,DefaultParameter,GetAttachmentParameter,DefaultParameter>
Constructor and Description |
---|
AttachmentResourceHandler() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
handleCreateInternally(CreateAttachmentParameter createParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
hook method, which should be implemented by subclasses, in order to perform actual resource
creation
|
javax.ws.rs.core.Response |
handleGetInternally(GetAttachmentParameter getAttachmentParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Returns an existing attachment of a given note.
|
handleDeleteInternally, handleEditInternally, handleListInternally
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
protected javax.ws.rs.core.Response handleCreateInternally(CreateAttachmentParameter createParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ParameterValidationException, ResponseBuildException, MaxLengthReachedException, ExtensionNotSupportedException, org.apache.commons.fileupload.FileUploadException, IOException, IllegalRequestParameterException, AuthorizationException
DefaultResourceHandler
handleCreateInternally
in class DefaultResourceHandler<CreateAttachmentParameter,DefaultParameter,DefaultParameter,GetAttachmentParameter,DefaultParameter>
createParameter
- create parameterrequestedMimeType
- mimeTypeuriInfo
- urirequestSessionId
- session idrequest
- requestParameterValidationException
ResponseBuildException
MaxLengthReachedException
ExtensionNotSupportedException
org.apache.commons.fileupload.FileUploadException
IOException
IllegalRequestParameterException
AuthorizationException
public javax.ws.rs.core.Response handleGetInternally(GetAttachmentParameter getAttachmentParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException, ContentRepositoryException, AuthorizationException, IOException, NotFoundException
handleGetInternally
in class DefaultResourceHandler<CreateAttachmentParameter,DefaultParameter,DefaultParameter,GetAttachmentParameter,DefaultParameter>
getAttachmentParameter
- the parameters of the attachmentrequestedMimeType
- MIME type requested by clienturiInfo
- additional information about requestrequestSessionId
- the session idrequest
- - javax requestResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedAuthorizationException
- user is not authorizedContentRepositoryException
- internal exception.IOException
- exception while i/o operation.NotFoundException
- in case the attachment was not foundCopyright © 2019 Communote team. All rights reserved.