public class RestMethod extends AbstractWsdlModelItem<RestMethodConfig> implements MutableTestPropertyHolder, PropertyChangeListener
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
RestMethod(RestResource service,
RestMethodConfig methodConfig) |
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
public RestMethod(RestResource service, RestMethodConfig methodConfig)
public RestParamsPropertyHolder getOverlayParams()
public RestResource getOperation()
public RestParamProperty addProperty(String name)
addProperty
in interface MutableTestPropertyHolder
public void moveProperty(String propertyName, int targetIndex)
moveProperty
in interface MutableTestPropertyHolder
public RestParamProperty removeProperty(String propertyName)
removeProperty
in interface MutableTestPropertyHolder
public boolean renameProperty(String name, String newName)
renameProperty
in interface MutableTestPropertyHolder
public void addTestPropertyListener(TestPropertyListener listener)
addTestPropertyListener
in interface TestPropertyHolder
public RestParamsPropertyHolder getParams()
public ModelItem getModelItem()
getModelItem
in interface TestPropertyHolder
public Map<String,TestProperty> getProperties()
getProperties
in interface TestPropertyHolder
public RestParamProperty getProperty(String name)
getProperty
in interface TestPropertyHolder
public RestParamProperty getPropertyAt(int index)
getPropertyAt
in interface TestPropertyHolder
public int getPropertyCount()
getPropertyCount
in interface TestPropertyHolder
public String[] getPropertyNames()
getPropertyNames
in interface TestPropertyHolder
public String getPropertyValue(String name)
getPropertyValue
in interface TestPropertyHolder
public boolean hasProperty(String name)
hasProperty
in interface TestPropertyHolder
public void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener
in interface TestPropertyHolder
public void setPropertyValue(String name, String value)
setPropertyValue
in interface TestPropertyHolder
public String getPropertiesLabel()
getPropertiesLabel
in interface TestPropertyHolder
public boolean hasRequestBody()
public void propertyChange(PropertyChangeEvent arg0)
propertyChange
in interface PropertyChangeListener
public PropertyExpansion[] getPropertyExpansions()
public RestRequestInterface.HttpMethod getMethod()
public void setMethod(RestRequestInterface.HttpMethod method)
public String getDefaultRequestMediaType()
public RestRepresentation[] getRepresentations()
public RestRepresentation[] getRepresentations(RestRepresentation.Type type, String mediaType)
public String[] getResponseMediaTypes()
public RestRepresentation addNewRepresentation(RestRepresentation.Type type)
public void removeRepresentation(RestRepresentation representation)
public void removeRequest(RestRequest request)
public RestResource getResource()
public List<RestRequest> getRequestList()
public RestRequest getRequestAt(int index)
public RestRequest getRequestByName(String name)
public int getRequestCount()
public RestRequest addNewRequest(String name)
public RestRequest cloneRequest(RestRequest request, String name)
public RestParamProperty[] getDefaultParams()
public RestService getInterface()
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public void release()
release
in interface Releasable
release
in class AbstractWsdlModelItem<RestMethodConfig>
public List<TestProperty> getPropertyList()
getPropertyList
in interface TestPropertyHolder
Copyright © 2019. All Rights Reserved.