@Path(value="/channels") public class JeeMessagingEndpoint extends Object
JeeMessagingEndpoint is a JAX-RS endpoint which receives joynr messages to be processed.
See #postMessage(String, String, UriInfo) for details.
The following characters are allowed in the id - upper and lower case characters - numbers - underscore (_) hyphen (-) and dot (.)
| Constructor and Description |
|---|
JeeMessagingEndpoint(JoynrIntegrationBean jeeIntegrationBean) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
postMessage(String channelId,
byte[] serializedMessage,
javax.ws.rs.core.UriInfo uriInfo)
Receives a binary encoded
ImmutableMessage which it then routes to the message
receiver in the joynr runtime. |
javax.ws.rs.core.Response |
postMessageWithoutContentType(String ccid,
byte[] serializedMessage,
javax.ws.rs.core.UriInfo uriInfo)
Receives a message for the given channel ID, parses the binary content as SMRF, and forwards to
postMessage(String, byte[], UriInfo). |
javax.ws.rs.core.Response |
status() |
@Inject public JeeMessagingEndpoint(JoynrIntegrationBean jeeIntegrationBean)
@GET public javax.ws.rs.core.Response status()
@POST
@Consumes(value="application/octet-stream")
@Path(value="/{ccid: [A-Z,a-z,0-9,_,\\-,\\.]+}/messageWithoutContentType")
public javax.ws.rs.core.Response postMessageWithoutContentType(@PathParam(value="ccid")
String ccid,
byte[] serializedMessage,
@Context
javax.ws.rs.core.UriInfo uriInfo)
throws IOException
postMessage(String, byte[], UriInfo).ccid - the channel id.serializedMessage - a serialized SMRF message to be send.uriInfo - the URI Information for the request being processed.IOException - in case of IO error occurred.@POST
@Path(value="/{channelId: [A-Z,a-z,0-9,_,\\-,\\.]+}/message")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response postMessage(@PathParam(value="channelId")
String channelId,
byte[] serializedMessage,
@Context
javax.ws.rs.core.UriInfo uriInfo)
ImmutableMessage which it then routes to the message
receiver in the joynr runtime.channelId - channel id of the receiver.serializedMessage - a serialized SMRF message being sent.uriInfo - the URI Information for the request being processed.Copyright © 2019. All rights reserved.