You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012/12/14 12:21:07,076 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) started in 42724ms - Started 254 of 387 services (130 services are passive or on-demand)
2012/12/14 12:21:12,151 INFO [org.jboss.resteasy.cdi.CdiInjectorFactory] (http-/127.5.123.1:8080-4) Found BeanManager at java:comp/BeanManager
2012/12/14 12:21:12,229 INFO [org.jboss.resteasy.spi.ResteasyDeployment] (http-/127.5.123.1:8080-4) Deploying javax.ws.rs.core.Application: class org.jboss.as.quickstarts.html5_mobile.rest.JaxRsActivator$Proxy$_$$_WeldClientProxy
2012/12/14 12:21:33,823 INFO [org.jboss.as.ejb3] (http-/127.5.123.1:8080-4) JBAS014101: Failed to find SFSB instance with session ID {[-124, -38, 92, 8, 21, 31, 66, -55, -82, -96, -73, -79, -76, 89, 22, -55]} in cache
2012/12/14 12:21:33,823 ERROR [org.jboss.as.ejb3.invocation] (http-/127.5.123.1:8080-4) JBAS014134: EJB Invocation failed on component MemberService for method public org.jboss.as.quickstarts.html5_mobile.model.Mem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Request Parameter Support in AeroGear Controller#
This gist discusses the implementation for AEROGEAR-671 which is about adding support for Query, Header, Cookie, and form request parameter support to AeroGear Route endpoints.
Route configuration
This is what a route might look like that uses two Query parameter:
Currently one can already expose a service as a RESTful endpoint in Camel using Camel's CXFRS Component. The same goes for a service in SwitchYard that can be exposed using the RestEasy Component.
We are not suggesting to build yet another integration platform, but instead provide adapters which act as remote clients to utilize existing services.
So, a few reasons why users might opt to expose their services through AeroGear Controller:
The plan for AeroGear Controller is to utilize RestEasy which is a JAX-RS implementation. There is really nothing in the JAX-RS specification that we require, but more some of the functionality that the exists in RestEasy. This document will try to list what this functionality is and if we should really use a JAX-RS implementation of write/"borrow" what we need.
AeroGear controller current has routing support for POJO endpoints, but current routing will forward the result of such an endpoint to a view. For a RESTful POJO endpoint we would return the data in the content type that the caller asks for (using the Http Accept header).
This document is intended to discuss a solution for AEROGEAR-645 "Add Query/Paging support on RESTful endpoints".
This dev-aerogear mail list thread was used as a starting point to gather requirements and ideas.
Background
Lets just clarify the two concepts that we are dealing with here, Paging and Query.
Paging
Paging deals with limiting the number of results returned from a single request. One "page" can contain a certain number of items as the result of invoking a request, sometimes referred to the size of a page.
Let say you want to limit you the number of result returned to 10 items, this could look something like this:
DefaultRoute toString() using StringConcatination with + operator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters