Memorynotfound Java Programming Tutorials

java tutorials

How to parse User-Agent using Java

In this tutorial we show you how to parse a user-agent string to get the information about the browser and operating system. We compare two open source libraries with each other and list the...
jersey tutorials

JAX-RS @BeanParam Example

The @BeanParam annotation is added to the JAX-RS 2.0 specification. It allows you to inject a pojo whose property methods or fields are annotated with any of the injection parameters supported by JAX-RS. To...
jersey tutorials

JAX-RS @CookieParam CRUD Example

Cookies are used to set up a session between the client and server or to remember the identity and user preferences between requests. These cookie values are transmitted to and from the client and...
jersey tutorials

JAX-RS @FormParam Example

We can post an HTML form directly to our JAX-RS service, we can read the request bodies by mapping the fields using the @FormParam annotation. Lets show how this works by a simple example....
jersey tutorials

Get HTTP Header Parameter in JAX-RS

When you need to get HTTP Header parameters with JAX-RS, you have a couple of options. You can use the @HeaderParam annotation provided by JAX-RS, Inject the HttpHeaders directly or inject the HttpServletRequest. Let’s...
jersey tutorials

JAX-RS @PathParam Example

The JAX-RS @PathParam annotation allows you to inject the value of named URI path parameters that were defined in the @Path annotation expression. In this example we’ll explore the different ways you can use...
jersey tutorials

JAX-RS @QueryParam Example

The JAX-RS @QueryParam annotation allows you to inject URI query parameters into your Java parameters. These query parameters are represented as a string of characters within the HTTP request. JAX-RS can convert this string...