当前位置: 首页>>代码示例>>Java>>正文


Java Response类代码示例

本文整理汇总了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 );
    }
}
 
开发者ID:RUB-NDS,项目名称:WS-Attacker,代码行数:18,代码来源:CurrentRequest.java

示例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 );
}
 
开发者ID:RUB-NDS,项目名称:WS-Attacker,代码行数:26,代码来源:UnintelligentDoS.java

示例3: getResponse

import com.eviware.soapui.model.iface.Response; //导入依赖的package包/类
@Override
public Response getResponse() {
    return null;
}
 
开发者ID:SmartBear,项目名称:ready-mqtt-plugin,代码行数:5,代码来源:ReceiveTestStep.java


注:本文中的com.eviware.soapui.model.iface.Response类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。