public class RestResource extends AbstractWsdlModelItem<RestResourceConfig> implements AbstractHttpOperation, MutableTestPropertyHolder, RestResourceContainer, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
static String |
PATH_PROPERTY |
ACTION_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
RestResource(RestResource restResource,
RestResourceConfig resourceConfig) |
RestResource(RestService service,
RestResourceConfig resourceConfig) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
getName
public static final String PATH_PROPERTY
public RestResource(RestService service, RestResourceConfig resourceConfig)
public RestResource(RestResource restResource, RestResourceConfig resourceConfig)
public RestResource getParentResource()
public RestResourceContainer getResourceContainer()
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public MessagePart[] getDefaultRequestParts()
getDefaultRequestParts
in interface Operation
public MessagePart[] getDefaultResponseParts()
getDefaultResponseParts
in interface Operation
public RestService getInterface()
getInterface
in interface AbstractHttpOperation
getInterface
in interface Operation
public String[] getRequestMediaTypes()
public String[] getResponseMediaTypes()
public RestResource getChildResourceByName(String name)
public RestResource addNewChildResource(String name, String path)
public int getChildResourceCount()
public List<RestResource> getChildResourceList()
public RestRequest getRequestAt(int index)
getRequestAt
in interface Operation
public RestRequest getRequestByName(String name)
getRequestByName
in interface Operation
public RestMethod addNewMethod(String name)
public int getRestMethodCount()
public List<RestMethod> getRestMethodList()
public RestMethod getRestMethodByName(String name)
public int getRequestCount()
getRequestCount
in interface Operation
public List<Request> getRequestList()
getRequestList
in interface Operation
public String getPath()
public void setPath(String path)
public boolean isBidirectional()
isBidirectional
in interface Operation
public boolean isNotification()
public boolean isOneWay()
public boolean isRequestResponse()
public boolean isSolicitResponse()
public boolean isUnidirectional()
isUnidirectional
in interface Operation
public Attachment.AttachmentEncoding getAttachmentEncoding(String part, boolean isRequest)
getAttachmentEncoding
in interface AbstractHttpOperation
public RestParamProperty[] getDefaultParams()
public String getFullPath()
public String getFullPath(boolean includeBasePath)
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 String buildPath(PropertyExpansionContext context)
public RestResource cloneChildResource(RestResource resource, String name)
public RestResource cloneResource(RestResource resource, String name)
cloneResource
in interface RestResourceContainer
public RestMethod cloneMethod(RestMethod method, String name)
public void release()
release
in interface Releasable
release
in class AbstractWsdlModelItem<RestResourceConfig>
public void deleteMethod(RestMethod method)
protected void deleteAllChildResources(RestResource resource)
public void deleteResource(RestResource resource)
deleteResource
in interface RestResourceContainer
public String createRequest(boolean b)
createRequest
in interface Operation
public String createResponse(boolean b)
createResponse
in interface Operation
public RestResource getChildResourceAt(int c)
public RestMethod getRestMethodAt(int c)
public RestService getService()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public RestResource[] getAllChildResources()
public List<TestProperty> getPropertyList()
getPropertyList
in interface TestPropertyHolder
public RestResource getTopLevelResource()
Copyright © 2019. All Rights Reserved.