com.eviware.soapui.impl.support
Class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
          extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
              extended by com.eviware.soapui.impl.support.AbstractHttpRequest<T>
All Implemented Interfaces:
AbstractHttpRequestInterface<T>, AttachmentContainer, MutableAttachmentContainer, JMSHeaderContainer, JMSPropertyContainer, Request, ModelItem, PropertyExpansionContainer, PropertyChangeNotifier
Direct Known Subclasses:
HttpRequest, RestRequest, WsdlRequest

public abstract class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
extends AbstractWsdlModelItem<T>
implements Request, AbstractHttpRequestInterface<T>, JMSHeaderContainer, JMSPropertyContainer


Nested Class Summary
static class AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
           
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.iface.Request
Request.SubmitException
 
Field Summary
 
Fields inherited from interface com.eviware.soapui.impl.support.AbstractHttpRequestInterface
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, log, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, RESPONSE_PROPERTY, STRIP_WHITESPACES
 
Fields inherited from interface com.eviware.soapui.model.iface.Request
ENCODING_PROPERTY, ENDPOINT_PROPERTY, REQUEST_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Fields inherited from interface com.eviware.soapui.impl.wsdl.AttachmentContainer
ATTACHMENTS_PROPERTY
 
Constructor Summary
protected AbstractHttpRequest(T config, AbstractHttpOperation parent, java.lang.String icon, boolean forLoadTest)
           
 
Method Summary
 void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
           
 void addSubmitListener(SubmitListener listener)
           
 Attachment attachFile(java.io.File file, boolean cache)
           
 void beforeSave()
           
 void copyAttachmentsTo(WsdlRequest newRequest)
           
 IAfterRequestInjection getAfterRequestInjection()
           
 Attachment getAttachmentAt(int index)
           
 int getAttachmentCount()
           
abstract  HttpAttachmentPart getAttachmentPart(java.lang.String partName)
          Override just to get a better return type
 Attachment[] getAttachments()
           
 Attachment[] getAttachmentsForPart(java.lang.String partName)
           
protected  java.util.List<FileAttachment<?>> getAttachmentsList()
           
 java.lang.String getBindAddress()
           
 java.lang.String getDomain()
           
 java.lang.String getDumpFile()
           
 java.lang.String getEncoding()
           
 java.lang.String getEndpoint()
           
 javax.swing.ImageIcon getIcon()
           
 AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
           
 long getMaxSize()
           
abstract  RestRequestInterface.RequestMethod getMethod()
           
 AbstractHttpOperation getOperation()
           
 java.lang.String getPassword()
           
 PropertyExpansion[] getPropertyExpansions()
           
 java.lang.String getRequestContent()
           
 StringToStringMap getRequestHeaders()
           
 HttpResponse getResponse()
           
 java.lang.String getSslKeystore()
           
 SubmitListener[] getSubmitListeners()
           
 java.lang.String getTimeout()
           
 java.lang.String getUsername()
           
 boolean hasEndpoint()
           
 Attachment importAttachment(Attachment attachment)
           
protected  AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()
           
 boolean isEntitizeProperties()
           
 boolean isFollowRedirects()
           
 boolean isMultipartEnabled()
           
 boolean isPrettyPrint()
           
 boolean isReadOnly()
           
 boolean isRemoveEmptyContent()
           
 boolean isStripWhitespaces()
           
 void release()
           
 void removeAttachment(Attachment attachment)
           
 void removeAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
           
 void removeSubmitListener(SubmitListener listener)
           
 void resolve(ResolveContext<?> context)
           
 void setAfterRequestInjection(IAfterRequestInjection afterRequestInjection)
           
 void setBindAddress(java.lang.String bindAddress)
           
 void setDomain(java.lang.String domain)
           
 void setDumpFile(java.lang.String df)
           
 void setEncoding(java.lang.String encoding)
           
 void setEndpoint(java.lang.String endpoint)
           
 void setEntitizeProperties(boolean entitizeProperties)
           
 void setFollowRedirects(boolean followRedirects)
           
 void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
           
 void setMaxSize(long maxSize)
           
 void setMultipartEnabled(boolean multipartEnabled)
           
 void setPassword(java.lang.String password)
           
 void setPrettyPrint(boolean prettyPrint)
           
 void setRemoveEmptyContent(boolean removeEmptyContent)
           
 void setRequestContent(java.lang.String request)
           
 void setRequestHeaders(StringToStringMap map)
           
 void setResponse(HttpResponse response, SubmitContext context)
           
 void setSslKeystore(java.lang.String sslKeystore)
           
 void setStripWhitespaces(boolean stripWhitespaces)
           
 void setTimeout(java.lang.String timeout)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, dependsOn, getConfig, getDescription, getId, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.iface.Request
dependsOn, getRequestParts, getResponseParts, submit
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getChildren, getDescription, getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.AttachmentContainer
getDefinedAttachmentParts, getModelItem
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.support.jms.header.JMSHeaderContainer
getJMSHeaderConfig
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.support.jms.property.JMSPropertyContainer
getJMSPropertiesConfig
 

Constructor Detail

AbstractHttpRequest

protected AbstractHttpRequest(T config,
                              AbstractHttpOperation parent,
                              java.lang.String icon,
                              boolean forLoadTest)
Method Detail

getAttachmentsList

protected java.util.List<FileAttachment<?>> getAttachmentsList()

attachFile

public Attachment attachFile(java.io.File file,
                             boolean cache)
                      throws java.io.IOException
Specified by:
attachFile in interface MutableAttachmentContainer
Throws:
java.io.IOException

getMethod

public abstract RestRequestInterface.RequestMethod getMethod()
Specified by:
getMethod in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getAttachmentPart

public abstract HttpAttachmentPart getAttachmentPart(java.lang.String partName)
Override just to get a better return type

Specified by:
getAttachmentPart in interface AttachmentContainer
See Also:
AttachmentContainer.getAttachmentPart(java.lang.String)

getAttachmentCount

public int getAttachmentCount()
Specified by:
getAttachmentCount in interface AttachmentContainer

getAttachmentAt

public Attachment getAttachmentAt(int index)
Specified by:
getAttachmentAt in interface AttachmentContainer

getAttachmentsForPart

public Attachment[] getAttachmentsForPart(java.lang.String partName)
Specified by:
getAttachmentsForPart in interface AttachmentContainer

removeAttachment

public void removeAttachment(Attachment attachment)
Specified by:
removeAttachment in interface MutableAttachmentContainer

getAttachments

public Attachment[] getAttachments()
Specified by:
getAttachments in interface AttachmentContainer
Specified by:
getAttachments in interface Request

initIconAnimator

protected AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()

addSubmitListener

public void addSubmitListener(SubmitListener listener)
Specified by:
addSubmitListener in interface Request

removeSubmitListener

public void removeSubmitListener(SubmitListener listener)
Specified by:
removeSubmitListener in interface Request

isMultipartEnabled

public boolean isMultipartEnabled()
Specified by:
isMultipartEnabled in interface AttachmentContainer

setMultipartEnabled

public void setMultipartEnabled(boolean multipartEnabled)
Specified by:
setMultipartEnabled in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

isEntitizeProperties

public boolean isEntitizeProperties()
Specified by:
isEntitizeProperties in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setEntitizeProperties

public void setEntitizeProperties(boolean entitizeProperties)
Specified by:
setEntitizeProperties in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

release

public void release()
Specified by:
release in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Overrides:
release in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

getSubmitListeners

public SubmitListener[] getSubmitListeners()
Specified by:
getSubmitListeners in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getOperation

public AbstractHttpOperation getOperation()
Specified by:
getOperation in interface Request

copyAttachmentsTo

public void copyAttachmentsTo(WsdlRequest newRequest)
Specified by:
copyAttachmentsTo in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

importAttachment

public Attachment importAttachment(Attachment attachment)
Specified by:
importAttachment in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

addAttachmentsChangeListener

public void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addAttachmentsChangeListener in interface AttachmentContainer

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

removeAttachmentsChangeListener

public void removeAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removeAttachmentsChangeListener in interface AttachmentContainer

getRequestContent

public java.lang.String getRequestContent()
Specified by:
getRequestContent in interface Request

setRequestContent

public void setRequestContent(java.lang.String request)
Specified by:
setRequestContent in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

isPrettyPrint

public boolean isPrettyPrint()
Specified by:
isPrettyPrint in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)
Specified by:
setPrettyPrint in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setEndpoint

public void setEndpoint(java.lang.String endpoint)
Specified by:
setEndpoint in interface Request

getEndpoint

public java.lang.String getEndpoint()
Specified by:
getEndpoint in interface Request

getEncoding

public java.lang.String getEncoding()
Specified by:
getEncoding in interface Request

setEncoding

public void setEncoding(java.lang.String encoding)
Specified by:
setEncoding in interface Request

getTimeout

public java.lang.String getTimeout()
Specified by:
getTimeout in interface Request

setTimeout

public void setTimeout(java.lang.String timeout)

getRequestHeaders

public StringToStringMap getRequestHeaders()
Specified by:
getRequestHeaders in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getIconAnimator

public AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
Specified by:
getIconAnimator in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setRequestHeaders

public void setRequestHeaders(StringToStringMap map)
Specified by:
setRequestHeaders in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Specified by:
getIcon in interface ModelItem
Overrides:
getIcon in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

getPropertyExpansions

public PropertyExpansion[] getPropertyExpansions()
Specified by:
getPropertyExpansions in interface PropertyExpansionContainer

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Specified by:
getUsername in interface Request

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Specified by:
getPassword in interface Request

getDomain

public java.lang.String getDomain()
Specified by:
getDomain in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setUsername

public void setUsername(java.lang.String username)
Specified by:
setUsername in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setPassword

public void setPassword(java.lang.String password)
Specified by:
setPassword in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setDomain

public void setDomain(java.lang.String domain)
Specified by:
setDomain in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getSslKeystore

public java.lang.String getSslKeystore()
Specified by:
getSslKeystore in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setSslKeystore

public void setSslKeystore(java.lang.String sslKeystore)
Specified by:
setSslKeystore in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getBindAddress

public java.lang.String getBindAddress()
Specified by:
getBindAddress in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setBindAddress

public void setBindAddress(java.lang.String bindAddress)
Specified by:
setBindAddress in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getMaxSize

public long getMaxSize()
Specified by:
getMaxSize in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setMaxSize

public void setMaxSize(long maxSize)
Specified by:
setMaxSize in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getDumpFile

public java.lang.String getDumpFile()
Specified by:
getDumpFile in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setDumpFile

public void setDumpFile(java.lang.String df)
Specified by:
setDumpFile in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

isRemoveEmptyContent

public boolean isRemoveEmptyContent()
Specified by:
isRemoveEmptyContent in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setRemoveEmptyContent

public void setRemoveEmptyContent(boolean removeEmptyContent)
Specified by:
setRemoveEmptyContent in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

isStripWhitespaces

public boolean isStripWhitespaces()
Specified by:
isStripWhitespaces in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setStripWhitespaces

public void setStripWhitespaces(boolean stripWhitespaces)
Specified by:
setStripWhitespaces in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

isFollowRedirects

public boolean isFollowRedirects()
Specified by:
isFollowRedirects in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setFollowRedirects

public void setFollowRedirects(boolean followRedirects)
Specified by:
setFollowRedirects in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

beforeSave

public void beforeSave()
Specified by:
beforeSave in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Overrides:
beforeSave in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

setIconAnimator

public void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
Specified by:
setIconAnimator in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

getResponse

public HttpResponse getResponse()
Specified by:
getResponse in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setResponse

public void setResponse(HttpResponse response,
                        SubmitContext context)
Specified by:
setResponse in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

resolve

public void resolve(ResolveContext<?> context)
Specified by:
resolve in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Overrides:
resolve in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

hasEndpoint

public boolean hasEndpoint()
Specified by:
hasEndpoint in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>

setAfterRequestInjection

public void setAfterRequestInjection(IAfterRequestInjection afterRequestInjection)

getAfterRequestInjection

public IAfterRequestInjection getAfterRequestInjection()
Specified by:
getAfterRequestInjection in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>


Copyright © 2005-2010 eviware.com. All Rights Reserved.