com.eviware.soapui.impl.rest
Class RestService
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
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, release, removeEndpoint, removeInterfaceListener |
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
afterLoad, dependsOn, getDescription, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setName, setSettings |
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)
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)
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()
getResourceByPath
public RestResource getResourceByPath(java.lang.String resourcePath)
getDefinitionContext
public DefinitionContext 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>
beforeSave
public void beforeSave()
- Overrides:
beforeSave
in class AbstractWsdlModelItem<com.eviware.soapui.config.RestServiceConfig>
Copyright © 2005-2008 eviware.com. All Rights Reserved.