public class CreatedResponseUtil extends Object
| Constructor and Description |
|---|
CreatedResponseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCreatedId(javax.ws.rs.core.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(javax.ws.rs.core.Response response) throws javax.ws.rs.WebApplicationException
response - The JAX-RS Response receivedjavax.ws.rs.WebApplicationException - if the response is not a 201 CreatedCopyright © 2021 JBoss by Red Hat. All rights reserved.