org.jboss.example.jaxrs2.async

## Class CustomerResource

- java.lang.Object
- - org.jboss.example.jaxrs2.async.CustomerResource

-     @Path(value="/customers")
      public class CustomerResource
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CustomerResource()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Customer` | `getById(String id)`
    `Customer` | `getByName(String name)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CustomerResource

          public CustomerResource()

  - ### Method Detail

    - #### getByName

          @GET
          @Produces(value="application/json")
          public Customer getByName(@QueryParam(value="name")
                                             String name)

    - #### getById

          @GET
          @Path(value="{id}")
          @Produces(value="application/json")
          public Customer getById(@PathParam(value="id")
                                                     String id)

Copyright © 2014. All Rights Reserved.