本文整理汇总了Java中com.eviware.soapui.model.iface.Response类的典型用法代码示例。如果您正苦于以下问题:Java Response类的具体用法?Java Response怎么用?Java Response使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Response类属于com.eviware.soapui.model.iface包,在下文中一共展示了Response类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: submitRequest
import com.eviware.soapui.model.iface.Response; //导入依赖的package包/类
public void submitRequest()
throws SubmitException, NullPointerException
{
if ( wsdlRequest == null )
{
throw new NullPointerException( "There is no request to submit" );
}
WsdlSubmit<WsdlRequest> submit;
WsdlSubmitContext c = new WsdlSubmitContext( wsdlRequest );
submit = (WsdlSubmit<WsdlRequest>) wsdlRequest.submit( c, false );
Response response = submit.getResponse();
if ( response instanceof WsdlResponse )
{
setWsdlResponse( (WsdlResponse) response );
wsdlRequest.setResponse( wsdlResponse, c );
}
}
示例2: main
import com.eviware.soapui.model.iface.Response; //导入依赖的package包/类
public static void main( String[] args )
throws SoapUIException, XmlException, IOException, SubmitException
{
WsdlRequest wsdlRequest = createWsdlRequest();
// submit the request
WsdlSubmit<WsdlRequest> submit = wsdlRequest.submit( new WsdlSubmitContext( wsdlRequest ), false );
// wait for the response
Response response = submit.getResponse();
// print the response
// String content = response.getContentAsString();
// System.out.println(content);
CurrentRequest original = new CurrentRequest();
original.setWsdlRequest( wsdlRequest );
original.setWsdlResponse( (WsdlResponse) response );
// CurrentRequest original = new CurrentRequest();
UnintelligentDoS doS = new UnintelligentDoS();
doS.attackImplementationHook( original );
System.exit( 0 );
}
示例3: getResponse
import com.eviware.soapui.model.iface.Response; //导入依赖的package包/类
@Override
public Response getResponse() {
return null;
}