com.eviware.soapui.impl.rest
Class RestService
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<T>
com.eviware.soapui.impl.support.AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
com.eviware.soapui.impl.rest.RestService
- All Implemented Interfaces:
- RestResourceContainer, Interface, ModelItem, PropertyChangeNotifier
public class RestService
- extends AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
- implements RestResourceContainer
WSDL implementation of Interface, maps to a WSDL Binding
- Author:
- Ole.Matzura
|
Constructor Summary |
RestService(WsdlProject project,
com.eviware.soapui.config.RestServiceConfig serviceConfig)
|
| Methods inherited from class com.eviware.soapui.impl.support.AbstractInterface |
addEndpoint, addInterfaceListener, changeEndpoint, fireOperationAdded, fireOperationRemoved, fireOperationUpdated, fireRequestAdded, fireRequestRemoved, getChildren, getConfig, getEndpoints, getProject, removeEndpoint, removeInterfaceListener |
| Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
addExternalDependencies, afterLoad, dependsOn, getDescription, getExternalDependencies, 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 |
RestService
public RestService(WsdlProject project,
com.eviware.soapui.config.RestServiceConfig serviceConfig)
getWadlVersion
public java.lang.String getWadlVersion()
getInterfaceType
public java.lang.String getInterfaceType()
- Specified by:
getInterfaceType in interface Interface
getOperationAt
public RestResource getOperationAt(int index)
- Specified by:
getOperationAt in interface Interface
getOperationByName
public RestResource getOperationByName(java.lang.String name)
- Specified by:
getOperationByName in interface Interface
getOperationCount
public int getOperationCount()
- Specified by:
getOperationCount in interface Interface
getOperationList
public java.util.List<Operation> getOperationList()
- Specified by:
getOperationList in interface Interface
getBasePath
public java.lang.String getBasePath()
setBasePath
public void setBasePath(java.lang.String basePath)
getInferredSchema
public java.lang.String getInferredSchema()
setInferredSchema
public void setInferredSchema(java.lang.String inferredSchema)
isGenerated
public boolean isGenerated()
getWadlUrl
public java.lang.String getWadlUrl()
generateWadlUrl
public java.lang.String generateWadlUrl()
setWadlUrl
public void setWadlUrl(java.lang.String wadlUrl)
getTechnicalId
public java.lang.String getTechnicalId()
- Specified by:
getTechnicalId in interface Interface
addNewResource
public RestResource addNewResource(java.lang.String name,
java.lang.String path)
cloneResource
public RestResource cloneResource(RestResource resource,
java.lang.String name)
- Specified by:
cloneResource in interface RestResourceContainer
deleteResource
public void deleteResource(RestResource resource)
- Specified by:
deleteResource in interface RestResourceContainer
getAllResources
public java.util.List<RestResource> getAllResources()
getResources
public java.util.Map<java.lang.String,RestResource> getResources()
getResourceByFullPath
public RestResource getResourceByFullPath(java.lang.String resourcePath)
getResourcesByFullPath
public RestResource[] getResourcesByFullPath(java.lang.String resourcePath)
getDefinitionContext
public WadlDefinitionContext getDefinitionContext()
- Specified by:
getDefinitionContext in interface Interface- Specified by:
getDefinitionContext in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
getWadlContext
public WadlDefinitionContext getWadlContext()
getDefinition
public java.lang.String getDefinition()
- Description copied from class:
AbstractInterface
- Return the URL for the current definition (ie a WSDL or WADL url)
- Specified by:
getDefinition in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
getType
public java.lang.String getType()
- Specified by:
getType in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
isDefinitionShareble
public boolean isDefinitionShareble()
- Specified by:
isDefinitionShareble in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
getAllOperations
public Operation[] getAllOperations()
- Specified by:
getAllOperations in interface Interface- Overrides:
getAllOperations in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
beforeSave
public void beforeSave()
- Overrides:
beforeSave in class AbstractWsdlModelItem<com.eviware.soapui.config.RestServiceConfig>
release
public void release()
- Overrides:
release in class AbstractInterface<com.eviware.soapui.config.RestServiceConfig>
getResourceList
public java.util.List<RestResource> getResourceList()
Copyright © 2005-2011 eviware.com. All Rights Reserved.