public class RestRequest extends AbstractHttpRequest<RestRequestConfig> implements RestRequestInterface
Modifier and Type | Class and Description |
---|---|
static class |
RestRequest.ParameterMessagePart |
class |
RestRequest.RestContentPart |
AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
RestRequestInterface.HttpMethod
Request.SubmitException
BASIC_AUTH_PROFILE, CR_ESCAPE_SEQUENCE, SELECTED_AUTH_PROFILE_PROPERTY_NAME
DEFAULT_MEDIATYPE, log, REST_XML_REQUEST
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, RESPONSE_PROPERTY, STRIP_WHITESPACES
ENCODING_PROPERTY, ENDPOINT_PROPERTY, MEDIA_TYPE, REQUEST_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
ATTACHMENTS_PROPERTY
Constructor and Description |
---|
RestRequest(RestMethod method,
RestRequestConfig requestConfig,
boolean forLoadTest) |
addAttachmentsChangeListener, addBasicAuthenticationProfile, addExternalDependencies, addSubmitListener, attachBinaryData, attachFile, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getAuthType, getBasicAuthenticationProfiles, getBasicAuthType, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIcon, getIconAnimator, getMaxSize, getPassword, getPreemptive, getRequestContent, getRequestHeaders, getResponse, getSelectedAuthProfile, getSslKeystore, getSubmitListeners, getTimeout, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeBasicAuthenticationProfile, removeSubmitListener, resolve, setAfterRequestInjection, setAttachmentAt, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPreemptive, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setRequestHeaders, setResponse, setSelectedAuthProfileAndAuthType, setSslKeystore, setStripWhitespaces, setTimeout, setUsername
afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setResponse
addExternalDependencies, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAuthType, getBindAddress, getDomain, getDumpFile, getIcon, getIconAnimator, getMaxSize, getPassword, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, resolve, setBindAddress, setDomain, setDumpFile, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, setUsername
addSubmitListener, dependsOn, getAttachments, getEncoding, getEndpoint, getRequestContent, getTimeout, removeSubmitListener, setEncoding, setEndpoint
getChildren, getDescription, getId, getName, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
attachFile, removeAttachment
addAttachmentsChangeListener, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, isMultipartEnabled, removeAttachmentsChangeListener
public RestRequest(RestMethod method, RestRequestConfig requestConfig, boolean forLoadTest)
public ModelItem getParent()
getParent
in interface ModelItem
getParent
in class AbstractWsdlModelItem<RestRequestConfig>
public RestMethod getRestMethod()
getRestMethod
in interface RestRequestInterface
protected AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()
initIconAnimator
in class AbstractHttpRequest<RestRequestConfig>
public MessagePart[] getRequestParts()
getRequestParts
in interface Request
public RestRepresentation[] getRepresentations()
getRepresentations
in interface RestRequestInterface
public RestRepresentation[] getRepresentations(RestRepresentation.Type type)
getRepresentations
in interface RestRequestInterface
public RestRepresentation[] getRepresentations(RestRepresentation.Type type, String mediaType)
getRepresentations
in interface RestRequestInterface
public MessagePart[] getResponseParts()
getResponseParts
in interface Request
public RestRequestInterface.HttpMethod getMethod()
getMethod
in interface AbstractHttpRequestInterface<RestRequestConfig>
getMethod
in class AbstractHttpRequest<RestRequestConfig>
public String getAccept()
getAccept
in interface RestRequestInterface
public void setAccept(String acceptEncoding)
setAccept
in interface RestRequestInterface
public void setMediaType(String mediaType)
MediaType
setMediaType
in interface MediaType
mediaType
- a valid media type.public String getMediaType()
MediaType
getMediaType
in interface MediaType
public void setMethod(RestRequestInterface.HttpMethod method)
setMethod
in interface HttpRequestInterface<RestRequestConfig>
public WsdlSubmit<RestRequest> submit(SubmitContext submitContext, boolean async) throws Request.SubmitException
submit
in interface Request
Request.SubmitException
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
getPropertyExpansions
in class AbstractHttpRequest<RestRequestConfig>
public void addJMSHeaderExpansions(PropertyExpansionsResult result, JMSHeaderConfig jmsHeaderConfig, ModelItem modelItem)
public TestProperty addProperty(String name)
addProperty
in interface MutableTestPropertyHolder
public void moveProperty(String propertyName, int targetIndex)
moveProperty
in interface MutableTestPropertyHolder
public TestProperty 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 ModelItem getModelItem()
AttachmentContainer
getModelItem
in interface AttachmentContainer
getModelItem
in interface TestPropertyHolder
public RestResource getOperation()
getOperation
in interface Request
getOperation
in class AbstractHttpRequest<RestRequestConfig>
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 void resetPropertyValues()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public String[] getResponseMediaTypes()
getResponseMediaTypes
in interface RestRequestInterface
public boolean isPostQueryString()
isPostQueryString
in interface HttpRequestInterface<RestRequestConfig>
public void setPostQueryString(boolean b)
setPostQueryString
in interface HttpRequestInterface<RestRequestConfig>
public String getPropertiesLabel()
getPropertiesLabel
in interface TestPropertyHolder
public RestParamsPropertyHolder getParams()
getParams
in interface HttpRequestInterface<RestRequestConfig>
public HttpAttachmentPart getAttachmentPart(String partName)
AbstractHttpRequest
getAttachmentPart
in interface AttachmentContainer
getAttachmentPart
in class AbstractHttpRequest<RestRequestConfig>
AttachmentContainer.getAttachmentPart(java.lang.String)
public HttpAttachmentPart[] getDefinedAttachmentParts()
getDefinedAttachmentParts
in interface AttachmentContainer
public boolean hasRequestBody()
hasRequestBody
in interface HttpRequestInterface<RestRequestConfig>
public RestResource getResource()
getResource
in interface RestRequestInterface
public String getPath()
getPath
in interface HttpRequestInterface<RestRequestConfig>
public void setPath(String fullPath)
setPath
in interface RestRequestInterface
public String getResponseContentAsXml()
getResponseContentAsXml
in interface HttpRequestInterface<RestRequestConfig>
public void release()
release
in interface RestRequestInterface
release
in interface AbstractHttpRequestInterface<RestRequestConfig>
release
in interface Releasable
release
in class AbstractHttpRequest<RestRequestConfig>
public void updateConfig(RestRequestConfig request)
updateConfig
in interface HttpRequestInterface<RestRequestConfig>
protected void updateParams()
public boolean hasEndpoint()
hasEndpoint
in interface RestRequestInterface
hasEndpoint
in interface AbstractHttpRequestInterface<RestRequestConfig>
hasEndpoint
in class AbstractHttpRequest<RestRequestConfig>
public List<TestProperty> getPropertyList()
getPropertyList
in interface TestPropertyHolder
protected void setRestMethod(RestMethod restMethod)
public JMSHeaderConfig getJMSHeaderConfig()
getJMSHeaderConfig
in interface JMSHeaderContainer
public JMSPropertiesConfig getJMSPropertiesConfig()
getJMSPropertiesConfig
in interface JMSPropertyContainer
public String getMultiValueDelimiter()
getMultiValueDelimiter
in interface HttpRequestInterface<RestRequestConfig>
public void setMultiValueDelimiter(String delimiter)
Copyright © 2019. All Rights Reserved.