public class CreatedResponseUtil extends Object
| Constructor and Description |
|---|
CreatedResponseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCreatedId(Response response)
Reads the Response object, confirms that it returns a 201 created and parses the ID from the location
It always assumes the ID is the last segment of the URI
|
public static String getCreatedId(Response response) throws WebApplicationException
response - The JAX-RS Response receivedWebApplicationException - if the response is not a 201 CreatedCopyright © 2019 JBoss by Red Hat. All rights reserved.