Please enable JavaScript.
Coggle requires JavaScript to display documents.
JAX-RS (Annotations (@Provider (Types (Context (Name binding (Static…
JAX-RS
Annotations
-
-
-
-
-
-
-
-
-
-
@Provider
Types
Exception Mapper
Implements ExceptionMapper<Exception> e.g. ExceptionMapper<SQLIntegrityConstraintViolationException>
Provide implementation of method toResponse which generate a response based on the exception passed to the method
Context
Types
Filter
-
always executed, regardless of whether the resource was found or not.
Provide implementation of method filter, which gives the method body access to the request, and allow the logic there to act based on the states of the request
-
-
-
-
-
Entity Mapper
-
Provide implementation of method getContext() which returns an object of the mapper specified in the ContextResolver interface e.g. ObjectMapper
-
-
-
Client
-
Send request
client .target("http://localhost:8080/javaee-7.0/rest") .path("tickets/search") .request(MediaType.APPLICATION_JSON) .post(Entity.entity(ticketSearch, "application/json"), new GenericType<List<Ticket>>() {});
-
-