com.ibm.wsdl.extensions.http.HTTPBindingImpl Maven / Gradle / Ivy
/*
* (c) Copyright IBM Corp 2001, 2005
*/
package com.ibm.wsdl.extensions.http;
import javax.wsdl.extensions.http.*;
import javax.xml.namespace.*;
/**
* @author Matthew J. Duftler ([email protected])
*/
public class HTTPBindingImpl implements HTTPBinding
{
protected QName elementType = HTTPConstants.Q_ELEM_HTTP_BINDING;
// Uses the wrapper type so we can tell if it was set or not.
protected Boolean required = null;
protected String verb = null;
public static final long serialVersionUID = 1;
/**
* Set the type of this extensibility element.
*
* @param elementType the type
*/
public void setElementType(QName elementType)
{
this.elementType = elementType;
}
/**
* Get the type of this extensibility element.
*
* @return the extensibility element's type
*/
public QName getElementType()
{
return elementType;
}
/**
* Set whether or not the semantics of this extension
* are required. Relates to the wsdl:required attribute.
*/
public void setRequired(Boolean required)
{
this.required = required;
}
/**
* Get whether or not the semantics of this extension
* are required. Relates to the wsdl:required attribute.
*/
public Boolean getRequired()
{
return required;
}
/**
* Set the verb for this HTTP binding.
*
* @param verb the desired verb
*/
public void setVerb(String verb)
{
this.verb = verb;
}
/**
* Get the verb for this HTTP binding.
*/
public String getVerb()
{
return verb;
}
public String toString()
{
StringBuffer strBuf = new StringBuffer();
strBuf.append("HTTPBinding (" + elementType + "):");
strBuf.append("\nrequired=" + required);
if (verb != null)
{
strBuf.append("\nverb=" + verb);
}
return strBuf.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy