For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
MobileFirst Java adapters
With IBM MobileFirstâ„¢ Platform Foundation, we can create, test, and deploy adapters that are written in Javaâ„¢.
For more general information about MobileFirst adapters, see Adapters overview.
Benefits of MobileFirst Java adapters
In addition to benefits that adapters provide in general, Java adapters also provide these:
- Java adapters are based on the JAX-RS specification.
- Java adapters expose a full REST API to the client, giving you full control over the URL structure, the content types, the request and response headers, content, and encoding.
- Java adapters let you define custom MobileFirst security checks for granting client access to protected resources.
The Java adapter framework
Figure 1 illustrates how a mobile device can access any Java adapter from its REST endpoint. The REST interface is protected by the MobileFirst OAuth security filter, meaning that the client needs to obtain an access token to access the adapter resources. Each of the resources of the adapter has its own URL, so it is possible to protect MobileFirst endpoints using any firewall. The REST interface invokes the Java code (JAX-RS service) to handle incoming requests. The Java code can perform operations on the server by using the Java MobileFirst Server API. In addition, the Java code can connect to the enterprise system to fetch data, update data, or perform any other operation that the enterprise system exposes.
Figure 1. The Java adapter framework
![]()
Parent topic: Develop the server side of a MobileFirst application