public class FollowResourceHandler extends DefaultResourceHandler<CreateFollowParameter,DefaultParameter,DeleteFollowParameter,DefaultParameter,GetCollectionFollowParameter>
Constructor and Description |
---|
FollowResourceHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateFollowParameter createFollowParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to set blog follow
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteFollowParameter deleteFollowParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to delete follow of blog
|
javax.ws.rs.core.Response |
handleListInternally(GetCollectionFollowParameter getCollectionFollowParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to get follow of blog
|
handleEditInternally, handleGetInternally
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
public javax.ws.rs.core.Response handleCreateInternally(CreateFollowParameter createFollowParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws NumberFormatException, BlogAccessException, NotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally
in class DefaultResourceHandler<CreateFollowParameter,DefaultParameter,DeleteFollowParameter,DefaultParameter,GetCollectionFollowParameter>
createFollowParameter
- - 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 requestNotFoundException
- blog not foundBlogAccessException
- blog can not access by userNumberFormatException
- blog id is wrongResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic javax.ws.rs.core.Response handleDeleteInternally(DeleteFollowParameter deleteFollowParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws NumberFormatException, BlogAccessException, NotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleDeleteInternally
in class DefaultResourceHandler<CreateFollowParameter,DefaultParameter,DeleteFollowParameter,DefaultParameter,GetCollectionFollowParameter>
deleteFollowParameter
- - 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 requestNotFoundException
- blog not foundBlogAccessException
- blog can not access by userNumberFormatException
- blog id is wrongResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic javax.ws.rs.core.Response handleListInternally(GetCollectionFollowParameter getCollectionFollowParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException
handleListInternally
in class DefaultResourceHandler<CreateFollowParameter,DefaultParameter,DeleteFollowParameter,DefaultParameter,GetCollectionFollowParameter>
getCollectionFollowParameter
- - 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 requestFollowResource
ResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedCopyright © 2019 Communote team. All rights reserved.