View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.impl.support.wsa;
14  
15  import com.eviware.soapui.config.HttpRequestConfig;
16  import com.eviware.soapui.impl.rest.RestRequestInterface;
17  import com.eviware.soapui.impl.support.http.HttpRequest;
18  import com.eviware.soapui.impl.wsdl.WsdlOperation;
19  import com.eviware.soapui.impl.wsdl.support.wsa.WsaConfig;
20  import com.eviware.soapui.impl.wsdl.support.wsa.WsaContainer;
21  import com.eviware.soapui.impl.wsdl.support.wsrm.WsrmConfig;
22  import com.eviware.soapui.impl.wsdl.support.wsrm.WsrmContainer;
23  
24  public class WsaRequest extends HttpRequest implements WsaContainer, WsrmContainer
25  {
26  
27  	private WsaConfig wsaConfig;
28  	private WsrmConfig wsrmConfig;
29  	private WsdlOperation operation;
30  	private boolean wsrmEnabled;
31  
32  	public WsaRequest( HttpRequestConfig httpRequestConfig, WsaConfig wsaConfig, WsrmConfig wsrmConfig,
33  			boolean forLoadTest )
34  	{
35  		super( httpRequestConfig, forLoadTest );
36  		this.setWsaConfig( wsaConfig );
37  		this.setWsrmConfig( wsrmConfig );
38  	}
39  
40  	public void setWsaConfig( WsaConfig wsaConfig )
41  	{
42  		this.wsaConfig = wsaConfig;
43  	}
44  
45  	public WsaConfig getWsaConfig()
46  	{
47  		return wsaConfig;
48  	}
49  
50  	public boolean isWsaEnabled()
51  	{
52  		return wsaConfig.isWsaEnabled();
53  	}
54  
55  	public void setWsaEnabled( boolean arg0 )
56  	{
57  		wsaConfig.setWsaEnabled( arg0 );
58  
59  	}
60  
61  	public WsdlOperation getOperation()
62  	{
63  		return operation;
64  	}
65  
66  	public RestRequestInterface.RequestMethod getMethod()
67  	{
68  		return RestRequestInterface.RequestMethod.POST;
69  	}
70  
71  	public void setOperation( WsdlOperation operation )
72  	{
73  		this.operation = operation;
74  
75  	}
76  
77  	public WsrmConfig getWsrmConfig()
78  	{
79  		return wsrmConfig;
80  	}
81  
82  	public boolean isWsrmEnabled()
83  	{
84  		return wsrmEnabled;
85  	}
86  
87  	public void setWsrmEnabled( boolean arg0 )
88  	{
89  		wsrmEnabled = arg0;
90  
91  	}
92  
93  	public void setWsrmConfig( WsrmConfig wsrmConfig )
94  	{
95  		this.wsrmConfig = wsrmConfig;
96  	}
97  }