Example usage for com.amazonaws.services.route53.model ListHostedZonesResult getIsTruncated

List of usage examples for com.amazonaws.services.route53.model ListHostedZonesResult getIsTruncated

Introduction

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

Prototype


public Boolean getIsTruncated() 

Source Link

Document

A flag indicating whether there are more hosted zones to be listed.

Usage

From source file:com.msi.dns53.server.query.ListHostedZones.java

License:Apache License

@Override
public String marshall(MarshallStruct<ListHostedZonesResult> input, HttpServletResponse resp) throws Exception {
    logger.debug("Marshalling the result into xml.");
    ListHostedZonesResult result = input.getMainObject();
    XMLNode response = new XMLNode(DNS53Constants.LISTHOSTEDZONESRESPONSE);
    response.addAttr(DNS53Constants.XMLNS, DNS53Constants.XMLNS_VALUE);
    if (result.getHostedZones() != null && result.getHostedZones().size() > 0) {
        XMLNode hzs = QueryUtil.addNode(response, DNS53Constants.HOSTEDZONES);
        for (HostedZone hostedZone : result.getHostedZones()) {
            DNS53QueryUtil.marshallHostedZone(hostedZone, hzs);
        }/*from w  ww.j a  va2s  .  c o  m*/
    }
    QueryUtil.addNode(response, DNS53Constants.MARKER, result.getMarker());
    QueryUtil.addNode(response, DNS53Constants.ISTRUNCATED, result.getIsTruncated());
    QueryUtil.addNode(response, DNS53Constants.NEXTMARKER, result.getNextMarker());
    QueryUtil.addNode(response, DNS53Constants.MAXITEMS, result.getMaxItems());
    logger.debug("Returning the response xml to AbstractHeaderAction.");
    return response.toString();
}