@Path(value="/messages") public class MessageResource extends RestResource
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
MessageResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(int offset,
int limit) |
javax.ws.rs.core.Response |
get(long id) |
javax.ws.rs.core.Response |
sendMessage(MessageInfo messageInfo) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET @Produces(value="application/json") public javax.ws.rs.core.Response get(@DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="15") @QueryParam(value="limit") int limit)
@GET @Path(value="/{id}") public javax.ws.rs.core.Response get(@PathParam(value="id") long id)
@POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response sendMessage(MessageInfo messageInfo)
Copyright © 2017. All rights reserved.