public class FavoriteResourceHandler extends DefaultResourceHandler<CreateFavoriteParameter,DefaultParameter,DeleteFavoriteParameter,DefaultParameter,GetCollectionFavoriteParameter>
| Constructor and Description |
|---|
FavoriteResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateFavoriteParameter createFavoriteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to set note as favorite
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteFavoriteParameter deleteFavoriteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to delete note as favorite
|
javax.ws.rs.core.Response |
handleListInternally(GetCollectionFavoriteParameter getCollectionFavoriteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to list that a note is favorite oder not
|
handleEditInternally, handleGetInternallyhandleCreate, handleDelete, handleEdit, handleGet, handleList, setValidatorpublic javax.ws.rs.core.Response handleCreateInternally(CreateFavoriteParameter createFavoriteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws NoteNotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally in class DefaultResourceHandler<CreateFavoriteParameter,DefaultParameter,DeleteFavoriteParameter,DefaultParameter,GetCollectionFavoriteParameter>createFavoriteParameter - - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType - - is the mime type that indicates which data exchange format to useuriInfo - - this object is created by the request and contains some request specific datarequestSessionId - - The sessionId for the sessionrequest - - javax requestFavoriteResourceNoteNotFoundException - note was not found to favorizeResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleDeleteInternally(DeleteFavoriteParameter deleteFavoriteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws NoteNotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleDeleteInternally in class DefaultResourceHandler<CreateFavoriteParameter,DefaultParameter,DeleteFavoriteParameter,DefaultParameter,GetCollectionFavoriteParameter>deleteFavoriteParameter - - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType - - is the mime type that indicates which data exchange format to useuriInfo - - this object is created by the request and contains some request specific datarequestSessionId - - The sessionId for the sessionrequest - - javax requestFavoriteResourceNoteNotFoundException - note was not found to favorizeResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleListInternally(GetCollectionFavoriteParameter getCollectionFavoriteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException
handleListInternally in class DefaultResourceHandler<CreateFavoriteParameter,DefaultParameter,DeleteFavoriteParameter,DefaultParameter,GetCollectionFavoriteParameter>getCollectionFavoriteParameter - - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType - - is the mime type that indicates which data exchange format to useuriInfo - - this object is created by the request and contains some request specific datarequestSessionId - - The sessionId for the sessionrequest - - javax requestFavoriteResourceResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedCopyright © 2019 Communote team. All rights reserved.