001package com.plivo.api.xml; 002 003import javax.xml.bind.annotation.XmlAttribute; 004import javax.xml.bind.annotation.XmlRootElement; 005import javax.xml.bind.annotation.XmlValue; 006 007@XmlRootElement(name = "Redirect") 008public class Redirect extends PlivoXml implements ResponseNestable { 009 010 @XmlAttribute 011 private String method; 012 013 @XmlValue 014 private String url; 015 016 public Redirect(String url) { 017 this.url = url; 018 } 019 020 private Redirect() { 021 } 022 023 public String method() { 024 return this.method; 025 } 026 027 public Redirect method(final String method) { 028 this.method = method; 029 return this; 030 } 031}