public class CreatedResponseUtil extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
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 received
javax.ws.rs.WebApplicationException- if the response is not a 201 Created
Copyright © 2021 JBoss by Red Hat. All rights reserved.