Example usage for com.amazonaws.services.route53.model DeleteHostedZoneRequest DeleteHostedZoneRequest

List of usage examples for com.amazonaws.services.route53.model DeleteHostedZoneRequest DeleteHostedZoneRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.route53.model DeleteHostedZoneRequest DeleteHostedZoneRequest.

Prototype

public DeleteHostedZoneRequest() 

Source Link

Document

Default constructor for DeleteHostedZoneRequest object.

Usage

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  ww w .  j  a va2  s  .  c om
    String zoneId = paths.get(2);
    request.setId(zoneId);
    return request;
}