Hi,
I am using Jersey API for one of my applications.
The URI is in form "/something/operation".
The application works perfectly fine, when any of the allowed values
for "operation", is passed.
If however we do not pass any value for "operation", application fails with
a HTTP 404.
My requirement is to capture this null value of operation and throw a
custom error response.
Is it possible to capture?
If so, please provide some information.
My resource class has following structure:
@Path("/something/{operation}")
public class Something{
@POST
@Consumes({MediaType.APPLICATION_XML, MediaType.WILDCARD})
@Produces({MediaType.APPLICATION_XML, MediaType.WILDCARD})
public Response getResponse(){
...............
}
}
Thanks for the help.
Ashish