com.eviware.soapui.impl.support
Class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
com.eviware.soapui.impl.support.AbstractHttpRequest<T>
- All Implemented Interfaces:
- AttachmentContainer, MutableAttachmentContainer, Request, ModelItem, PropertyExpansionContainer, PropertyChangeNotifier
- Direct Known Subclasses:
- RestRequest, WsdlRequest
public abstract class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
- extends AbstractWsdlModelItem<T>
- implements Request, PropertyExpansionContainer, MutableAttachmentContainer
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, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Logger log
RESPONSE_PROPERTY
public static final java.lang.String RESPONSE_PROPERTY
REMOVE_EMPTY_CONTENT
public static final java.lang.String REMOVE_EMPTY_CONTENT
STRIP_WHITESPACES
public static final java.lang.String STRIP_WHITESPACES
REQUEST_HEADERS_PROPERTY
public static final java.lang.String REQUEST_HEADERS_PROPERTY
BIND_ADDRESS
public static final java.lang.String BIND_ADDRESS
DISABLE_MULTIPART_ATTACHMENTS
public static final java.lang.String DISABLE_MULTIPART_ATTACHMENTS
DUMP_FILE
public static final java.lang.String DUMP_FILE
MAX_SIZE
public static final java.lang.String MAX_SIZE
AbstractHttpRequest
protected AbstractHttpRequest(T config,
AbstractHttpOperation parent,
java.lang.String icon,
boolean forLoadTest)
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 AbstractHttpRequest.RequestMethod getMethod()
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)
release
public void release()
- Overrides:
release
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
getSubmitListeners
public SubmitListener[] getSubmitListeners()
getOperation
public AbstractHttpOperation getOperation()
- Specified by:
getOperation
in interface Request
copyAttachmentsTo
public void copyAttachmentsTo(WsdlRequest newRequest)
importAttachment
public Attachment importAttachment(Attachment attachment)
addAttachmentsChangeListener
public void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addAttachmentsChangeListener
in interface AttachmentContainer
isReadOnly
public boolean isReadOnly()
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)
isPrettyPrint
public boolean isPrettyPrint()
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
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
getRequestHeaders
public StringToStringMap getRequestHeaders()
getIconAnimator
public AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
setRequestHeaders
public void setRequestHeaders(StringToStringMap map)
getIcon
public javax.swing.ImageIcon getIcon()
- 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()
getPassword
public java.lang.String getPassword()
getDomain
public java.lang.String getDomain()
setUsername
public void setUsername(java.lang.String username)
setPassword
public void setPassword(java.lang.String password)
setDomain
public void setDomain(java.lang.String domain)
getSslKeystore
public java.lang.String getSslKeystore()
setSslKeystore
public void setSslKeystore(java.lang.String sslKeystore)
getBindAddress
public java.lang.String getBindAddress()
setBindAddress
public void setBindAddress(java.lang.String bindAddress)
getMaxSize
public long getMaxSize()
setMaxSize
public void setMaxSize(long maxSize)
getDumpFile
public java.lang.String getDumpFile()
setDumpFile
public void setDumpFile(java.lang.String df)
isRemoveEmptyContent
public boolean isRemoveEmptyContent()
setRemoveEmptyContent
public void setRemoveEmptyContent(boolean removeEmptyContent)
isStripWhitespaces
public boolean isStripWhitespaces()
setStripWhitespaces
public void setStripWhitespaces(boolean stripWhitespaces)
beforeSave
public void beforeSave()
- Overrides:
beforeSave
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
setIconAnimator
public void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
getResponse
public HttpResponse getResponse()
setResponse
public void setResponse(HttpResponse response,
SubmitContext context)
resolve
public void resolve(ResolveContext context)
- Overrides:
resolve
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
hasEndpoint
public boolean hasEndpoint()
Copyright © 2005-2008 eviware.com. All Rights Reserved.