001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio; 009 010import org.dellroad.jibxbindings.ParseUtil; 011import org.jibx.runtime.JiBXParseException; 012 013/** 014 * Specifies which HTTP method to use. 015 */ 016public enum Method { 017 GET, 018 POST; 019 020 /** 021 * Deserialize normally but allow empty string to mean null. 022 */ 023 public static Method deserialize(String string) throws JiBXParseException { 024 return ParseUtil.deserializeEnumOrNull(string, Method.class); 025 } 026} 027