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

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

Introduction

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

Prototype


public String getMaxItems() 

Source Link

Document

The value that you specified for the maxitems parameter in the call to ListHostedZones that produced the current response.

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  w w  . ja v a 2 s  .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();
}