public class RestResource extends AbstractWsdlModelItem<RestResourceConfig> implements AbstractHttpOperation, MutableTestPropertyHolder, RestResourceContainer, PropertyChangeListener
| Modifier and Type | Field and Description | 
|---|---|
| static String | PATH_PROPERTY | 
ACTION_PROPERTYDESCRIPTION_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, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getIcon, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenergetNamepublic 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 ModelItemgetChildren in class AbstractModelItempublic MessagePart[] getDefaultRequestParts()
getDefaultRequestParts in interface Operationpublic MessagePart[] getDefaultResponseParts()
getDefaultResponseParts in interface Operationpublic RestService getInterface()
getInterface in interface AbstractHttpOperationgetInterface in interface Operationpublic 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 Operationpublic RestRequest getRequestByName(String name)
getRequestByName in interface Operationpublic RestMethod addNewMethod(String name)
public int getRestMethodCount()
public List<RestMethod> getRestMethodList()
public RestMethod getRestMethodByName(String name)
public int getRequestCount()
getRequestCount in interface Operationpublic List<Request> getRequestList()
getRequestList in interface Operationpublic String getPath()
public void setPath(String path)
public boolean isBidirectional()
isBidirectional in interface Operationpublic boolean isNotification()
public boolean isOneWay()
public boolean isRequestResponse()
public boolean isSolicitResponse()
public boolean isUnidirectional()
isUnidirectional in interface Operationpublic Attachment.AttachmentEncoding getAttachmentEncoding(String part, boolean isRequest)
getAttachmentEncoding in interface AbstractHttpOperationpublic RestParamProperty[] getDefaultParams()
public String getFullPath()
public String getFullPath(boolean includeBasePath)
public RestParamProperty addProperty(String name)
addProperty in interface MutableTestPropertyHolderpublic void moveProperty(String propertyName, int targetIndex)
moveProperty in interface MutableTestPropertyHolderpublic RestParamProperty removeProperty(String propertyName)
removeProperty in interface MutableTestPropertyHolderpublic boolean renameProperty(String name, String newName)
renameProperty in interface MutableTestPropertyHolderpublic void addTestPropertyListener(TestPropertyListener listener)
addTestPropertyListener in interface TestPropertyHolderpublic RestParamsPropertyHolder getParams()
public ModelItem getModelItem()
getModelItem in interface TestPropertyHolderpublic Map<String,TestProperty> getProperties()
getProperties in interface TestPropertyHolderpublic RestParamProperty getProperty(String name)
getProperty in interface TestPropertyHolderpublic RestParamProperty getPropertyAt(int index)
getPropertyAt in interface TestPropertyHolderpublic int getPropertyCount()
getPropertyCount in interface TestPropertyHolderpublic String[] getPropertyNames()
getPropertyNames in interface TestPropertyHolderpublic String getPropertyValue(String name)
getPropertyValue in interface TestPropertyHolderpublic boolean hasProperty(String name)
hasProperty in interface TestPropertyHolderpublic void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener in interface TestPropertyHolderpublic void setPropertyValue(String name, String value)
setPropertyValue in interface TestPropertyHolderpublic String getPropertiesLabel()
getPropertiesLabel in interface TestPropertyHolderpublic String buildPath(PropertyExpansionContext context)
public RestResource cloneChildResource(RestResource resource, String name)
public RestResource cloneResource(RestResource resource, String name)
cloneResource in interface RestResourceContainerpublic RestMethod cloneMethod(RestMethod method, String name)
public void release()
release in interface Releasablerelease in class AbstractWsdlModelItem<RestResourceConfig>public void deleteMethod(RestMethod method)
protected void deleteAllChildResources(RestResource resource)
public void deleteResource(RestResource resource)
deleteResource in interface RestResourceContainerpublic String createRequest(boolean b)
createRequest in interface Operationpublic String createResponse(boolean b)
createResponse in interface Operationpublic RestResource getChildResourceAt(int c)
public RestMethod getRestMethodAt(int c)
public RestService getService()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic RestResource[] getAllChildResources()
public List<TestProperty> getPropertyList()
getPropertyList in interface TestPropertyHolderpublic RestResource getTopLevelResource()
Copyright © 2019. All Rights Reserved.