com.eviware.soapui.impl.rest
Class RestMethod
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.RestMethodConfig>
com.eviware.soapui.impl.rest.RestMethod
- All Implemented Interfaces:
- MutableTestPropertyHolder, ModelItem, TestPropertyHolder, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
public class RestMethod
- extends AbstractWsdlModelItem<com.eviware.soapui.config.RestMethodConfig>
- implements MutableTestPropertyHolder, java.beans.PropertyChangeListener
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, beforeSave, dependsOn, getConfig, getDescription, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setName, setSettings |
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestMethod
public RestMethod(RestResource service,
com.eviware.soapui.config.RestMethodConfig methodConfig)
getOverlayParams
public RestParamsPropertyHolder getOverlayParams()
getOperation
public RestResource getOperation()
addProperty
public RestParamProperty addProperty(java.lang.String name)
- Specified by:
addProperty
in interface MutableTestPropertyHolder
moveProperty
public void moveProperty(java.lang.String propertyName,
int targetIndex)
- Specified by:
moveProperty
in interface MutableTestPropertyHolder
removeProperty
public RestParamProperty removeProperty(java.lang.String propertyName)
- Specified by:
removeProperty
in interface MutableTestPropertyHolder
renameProperty
public boolean renameProperty(java.lang.String name,
java.lang.String newName)
- Specified by:
renameProperty
in interface MutableTestPropertyHolder
addTestPropertyListener
public void addTestPropertyListener(TestPropertyListener listener)
- Specified by:
addTestPropertyListener
in interface TestPropertyHolder
getParams
public RestParamsPropertyHolder getParams()
getModelItem
public ModelItem getModelItem()
- Specified by:
getModelItem
in interface TestPropertyHolder
getProperties
public java.util.Map<java.lang.String,TestProperty> getProperties()
- Specified by:
getProperties
in interface TestPropertyHolder
getProperty
public RestParamProperty getProperty(java.lang.String name)
- Specified by:
getProperty
in interface TestPropertyHolder
getPropertyAt
public RestParamProperty getPropertyAt(int index)
- Specified by:
getPropertyAt
in interface TestPropertyHolder
getPropertyCount
public int getPropertyCount()
- Specified by:
getPropertyCount
in interface TestPropertyHolder
getPropertyNames
public java.lang.String[] getPropertyNames()
- Specified by:
getPropertyNames
in interface TestPropertyHolder
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface TestPropertyHolder
hasProperty
public boolean hasProperty(java.lang.String name)
- Specified by:
hasProperty
in interface TestPropertyHolder
removeTestPropertyListener
public void removeTestPropertyListener(TestPropertyListener listener)
- Specified by:
removeTestPropertyListener
in interface TestPropertyHolder
setPropertyValue
public void setPropertyValue(java.lang.String name,
java.lang.String value)
- Specified by:
setPropertyValue
in interface TestPropertyHolder
getPropertiesLabel
public java.lang.String getPropertiesLabel()
- Specified by:
getPropertiesLabel
in interface TestPropertyHolder
hasRequestBody
public boolean hasRequestBody()
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent arg0)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
getPropertyExpansions
public PropertyExpansion[] getPropertyExpansions()
getMethod
public RestRequestInterface.RequestMethod getMethod()
setMethod
public void setMethod(RestRequestInterface.RequestMethod method)
getDefaultRequestMediaType
public java.lang.String getDefaultRequestMediaType()
getRepresentations
public RestRepresentation[] getRepresentations()
getRepresentations
public RestRepresentation[] getRepresentations(RestRepresentation.Type type,
java.lang.String mediaType)
getResponseMediaTypes
public java.lang.String[] getResponseMediaTypes()
addNewRepresentation
public RestRepresentation addNewRepresentation(RestRepresentation.Type type)
removeRepresentation
public void removeRepresentation(RestRepresentation representation)
removeRequest
public void removeRequest(RestRequest request)
getResource
public RestResource getResource()
getRequestList
public java.util.List<RestRequest> getRequestList()
getRequestAt
public RestRequest getRequestAt(int index)
getRequestByName
public RestRequest getRequestByName(java.lang.String name)
getRequestCount
public int getRequestCount()
addNewRequest
public RestRequest addNewRequest(java.lang.String name)
cloneRequest
public RestRequest cloneRequest(RestRequest request,
java.lang.String name)
getDefaultParams
public RestParamProperty[] getDefaultParams()
getInterface
public RestService getInterface()
getChildren
public java.util.List<? extends ModelItem> getChildren()
- Specified by:
getChildren
in interface ModelItem
- Overrides:
getChildren
in class AbstractModelItem
release
public void release()
- Overrides:
release
in class AbstractWsdlModelItem<com.eviware.soapui.config.RestMethodConfig>
getPropertyList
public java.util.List<TestProperty> getPropertyList()
- Specified by:
getPropertyList
in interface TestPropertyHolder
Copyright © 2005-2010 eviware.com. All Rights Reserved.