com.eviware.soapui.impl.wsdl
Class WsdlRequest

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.CallConfig>
          extended by com.eviware.soapui.impl.wsdl.WsdlRequest
All Implemented Interfaces:
AttachmentContainer, Request, ModelItem, PropertyChangeNotifier
Direct Known Subclasses:
WsdlTestRequest

public class WsdlRequest
extends AbstractWsdlModelItem<com.eviware.soapui.config.CallConfig>
implements Request, AttachmentContainer

Request implementation holding a SOAP request

Author:
Ole.Matzura

Nested Class Summary
protected  class WsdlRequest.RequestIconAnimator
           
 
Nested classes/interfaces inherited from class com.eviware.soapui.model.support.AbstractModelItem
AbstractModelItem.ShowModelItemAction
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.iface.Request
Request.SubmitException
 
Field Summary
protected  java.util.List<FileAttachment> attachments
           
static java.lang.String ATTACHMENTS_PROPERTY
           
static java.lang.String DISABLE_MULTIPART_ATTACHMENTS
           
static java.lang.String EXPAND_MTOM_RESPONSE_ATTACHMENTS
           
static java.lang.String INLINE_RESPONSE_ATTACHMENTS
           
static java.lang.String PW_TYPE_DIGEST
           
static java.lang.String PW_TYPE_NONE
           
static java.lang.String PW_TYPE_TEXT
           
static java.lang.String REQUEST_HEADERS_PROPERTY
           
static java.lang.String RESPONSE_CONTENT_PROPERTY
           
static java.lang.String RESPONSE_PROPERTY
           
static java.lang.String 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
ACTIONS_PROPERTY, DESCRIPTION_PROPERTY, ICON_PROPERTY, NAME_PROPERTY
 
Constructor Summary
WsdlRequest(WsdlOperation operation, com.eviware.soapui.config.CallConfig callConfig)
           
 
Method Summary
 void addSubmitListener(SubmitListener listener)
           
 Attachment attachFile(java.io.File file, boolean cache)
           
 void copyAttachmentsTo(WsdlRequest newRequest)
           
 void copyTo(WsdlRequest newRequest)
           
 Attachment getAttachmentAt(int index)
           
 int getAttachmentCount()
           
 WsdlAttachmentPart getAttachmentPart(java.lang.String partName)
           
 Attachment[] getAttachments()
           
 Attachment[] getAttachmentsForPart(java.lang.String partName)
           
 WsdlAttachmentPart[] getDefinedAttachmentParts()
           
 java.lang.String getDomain()
           
 java.lang.String getEncoding()
           
 java.lang.String getEndpoint()
           
 javax.swing.ImageIcon getIcon()
           
 ModelItemIconAnimator getIconAnimator()
           
 WsdlOperation getOperation()
           
 java.lang.String getPassword()
           
 java.lang.String getRequestContent()
           
 StringToStringMap getRequestHeaders()
           
 MessagePart[] getRequestParts()
           
 WsdlResponse getResponse()
           
 java.lang.String getResponseContent()
          Deprecated.  
 MessagePart[] getResponseParts()
           
 org.apache.xmlbeans.SchemaType getSchemaTypeForPart(WsdlContext wsdlContext, javax.wsdl.Part part)
           
 java.lang.String getUsername()
           
 java.lang.String getWssPasswordType()
           
protected  void initActions()
           
protected  void initEndpoints()
           
protected  WsdlRequest.RequestIconAnimator initIconAnimator()
           
 boolean isExpandMtomResponseAttachments()
           
 boolean isInlineResponseAttachments()
           
 boolean isMtomEnabled()
           
 boolean isMultipartEnabled()
           
 boolean isStripWhitespaces()
           
 void release()
           
 void removeAttachment(Attachment attachment)
           
 void removeSubmitListener(SubmitListener listener)
           
 void setDomain(java.lang.String domain)
           
 void setEncoding(java.lang.String encoding)
           
 void setEndpoint(java.lang.String endpoint)
           
 void setExpandMtomResponseAttachments(boolean expandMtomResponseAttachments)
           
 void setInlineResponseAttachments(boolean inlineResponseAttachments)
           
 void setMtomEnabled(boolean mtomEnabled)
           
 void setMultipartEnabled(boolean multipartEnabled)
           
 void setPassword(java.lang.String password)
           
 void setRequestContent(java.lang.String request)
           
 void setRequestHeaders(StringToStringMap map)
           
 void setResponse(WsdlResponse response, SubmitContext context)
           
 void setStripWhitespaces(boolean stripWhitespaces)
           
 void setUsername(java.lang.String username)
           
 void setWssPasswordType(java.lang.String wssPasswordType)
           
 Submit submit(SubmitContext submitContext, boolean async)
           
 void updateConfig(com.eviware.soapui.config.CallConfig request)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
getConfig, getDescription, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addAction, addAction, addPropertyChangeListener, addPropertyChangeListener, getActions, getPanelBuilder, 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.ModelItem
getActions, getDescription, getName, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

RESPONSE_PROPERTY

public static final java.lang.String RESPONSE_PROPERTY

RESPONSE_CONTENT_PROPERTY

public static final java.lang.String RESPONSE_CONTENT_PROPERTY

ATTACHMENTS_PROPERTY

public static final java.lang.String ATTACHMENTS_PROPERTY

INLINE_RESPONSE_ATTACHMENTS

public static final java.lang.String INLINE_RESPONSE_ATTACHMENTS

EXPAND_MTOM_RESPONSE_ATTACHMENTS

public static final java.lang.String EXPAND_MTOM_RESPONSE_ATTACHMENTS

STRIP_WHITESPACES

public static final java.lang.String STRIP_WHITESPACES

REQUEST_HEADERS_PROPERTY

public static final java.lang.String REQUEST_HEADERS_PROPERTY

DISABLE_MULTIPART_ATTACHMENTS

public static final java.lang.String DISABLE_MULTIPART_ATTACHMENTS

PW_TYPE_NONE

public static final java.lang.String PW_TYPE_NONE
See Also:
Constant Field Values

PW_TYPE_DIGEST

public static final java.lang.String PW_TYPE_DIGEST
See Also:
Constant Field Values

PW_TYPE_TEXT

public static final java.lang.String PW_TYPE_TEXT
See Also:
Constant Field Values

attachments

protected java.util.List<FileAttachment> attachments
Constructor Detail

WsdlRequest

public WsdlRequest(WsdlOperation operation,
                   com.eviware.soapui.config.CallConfig callConfig)
Method Detail

updateConfig

public void updateConfig(com.eviware.soapui.config.CallConfig request)

getIconAnimator

public ModelItemIconAnimator getIconAnimator()

initIconAnimator

protected WsdlRequest.RequestIconAnimator initIconAnimator()

initEndpoints

protected void initEndpoints()

initActions

protected void initActions()

getRequestContent

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

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()

setRequestHeaders

public void setRequestHeaders(StringToStringMap map)

isInlineResponseAttachments

public boolean isInlineResponseAttachments()

setInlineResponseAttachments

public void setInlineResponseAttachments(boolean inlineResponseAttachments)

isStripWhitespaces

public boolean isStripWhitespaces()

setStripWhitespaces

public void setStripWhitespaces(boolean stripWhitespaces)

isExpandMtomResponseAttachments

public boolean isExpandMtomResponseAttachments()

setExpandMtomResponseAttachments

public void setExpandMtomResponseAttachments(boolean expandMtomResponseAttachments)

getResponseContent

public java.lang.String getResponseContent()
Deprecated. 

Use getResponse().getContentAsString();


getResponse

public WsdlResponse getResponse()

getOperation

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

setRequestContent

public void setRequestContent(java.lang.String request)

setResponse

public void setResponse(WsdlResponse response,
                        SubmitContext context)

getIcon

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

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)

addSubmitListener

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

removeSubmitListener

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

submit

public Submit submit(SubmitContext submitContext,
                     boolean async)
              throws Request.SubmitException
Specified by:
submit in interface Request
Throws:
Request.SubmitException

getWssPasswordType

public java.lang.String getWssPasswordType()

setWssPasswordType

public void setWssPasswordType(java.lang.String wssPasswordType)

attachFile

public Attachment attachFile(java.io.File file,
                             boolean cache)
Specified by:
attachFile in interface AttachmentContainer

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 AttachmentContainer

getAttachments

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

getDefinedAttachmentParts

public WsdlAttachmentPart[] getDefinedAttachmentParts()
Specified by:
getDefinedAttachmentParts in interface AttachmentContainer

getAttachmentPart

public WsdlAttachmentPart getAttachmentPart(java.lang.String partName)
Specified by:
getAttachmentPart in interface AttachmentContainer

copyAttachmentsTo

public void copyAttachmentsTo(WsdlRequest newRequest)

copyTo

public void copyTo(WsdlRequest newRequest)

isMtomEnabled

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

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)

release

public void release()
Overrides:
release in class AbstractWsdlModelItem<com.eviware.soapui.config.CallConfig>

getRequestParts

public MessagePart[] getRequestParts()
Specified by:
getRequestParts in interface Request

getSchemaTypeForPart

public org.apache.xmlbeans.SchemaType getSchemaTypeForPart(WsdlContext wsdlContext,
                                                           javax.wsdl.Part part)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getResponseParts

public MessagePart[] getResponseParts()
Specified by:
getResponseParts in interface Request

isMultipartEnabled

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

setMultipartEnabled

public void setMultipartEnabled(boolean multipartEnabled)


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