Code example for URISyntaxException

Methods: printStackTrace

0
        try { 
            // Calling setURIs method clears the cached method, path etc. 
            containerRequest.setUris(containerRequest.getBaseUri(), 
                    new URI(containerRequest.getRequestUri().toString().replace("/ws/", "/")));
        } catch (URISyntaxException e) {
            e.printStackTrace();
        } 
        return containerRequest;
    } 
}