List of usage examples for com.amazonaws.services.route53.model DeleteHostedZoneRequest setId
public void setId(String id)
The ID of the hosted zone you want to delete.
From source file:com.msi.dns53.server.query.DeleteHostedZone.java
License:Apache License
public DeleteHostedZoneRequest unmarshall(HttpServletRequest req) { DeleteHostedZoneRequest request = new DeleteHostedZoneRequest(); SlashObject so = new SlashObject(req.getPathInfo()); List<String> paths = so.getList(); if (paths.size() != 3) { logger.debug("Request path is not set correctly. There are " + paths.size() + " path elements when there should 3."); throw DNS53Faults.InternalError(); }/*from w w w. j a v a 2 s. c o m*/ String zoneId = paths.get(2); request.setId(zoneId); return request; }