org.glassfish.jersey.examples.beanvalidation.webapp.resource
Class SearchResource
java.lang.Object
org.glassfish.jersey.examples.beanvalidation.webapp.resource.SearchResource
@Produces(value="application/json")
public class SearchResource
- extends Object
Resource providing search capability over a stored contact cards.
See validation of injected class field, input query param and return value.
- Author:
- Michal Gajdos (michal.gajdos at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchResource
public SearchResource()
searchForContact
@GET
@NotNull
public List<ContactCard> searchForContact(@NotBlank(message="{search.string.empty}")@QueryParam(value="q")
String searchValue)
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.