Java 类javax.jws.Oneway 实例源码

项目:Sem-Update    文件:WSServidor.java   
@WebMethod(operationName = "detenerServidor")
@Oneway
public void detenerServidor(@WebParam(name = "id") String id) {
    DB base_datos = new DB();
    base_datos.conectar();
    base_datos.eliminar(Integer.parseInt(id));

    if (Util.docker) {
        Process proceso;
        Runtime shell = Runtime.getRuntime();
        try {
            // COMANDO DOCKER
            // docker run -d --rm -p [PuertoPHP]:80 -p [PuertoSQL]:3306 --name=server[ID] xxdrackleroxx/test:1.0
            proceso = shell.exec("docker stop -t 0 server" + id);
        } catch (IOException ex) {
            System.out.println("[ERROR] Problema con el id obtenido");
        }
    }
}
项目:jbossws-cxf    文件:EndpointImpl.java   
@Oneway
public void doit()
{
    try
    {
        value = (String)(new InitialContext().lookup("java:comp/env/message"));
        if (!"Ahoj".equals(value))
        {
            ex = new RuntimeException("JNDI lookup in @Oneway method failed");
        }
    }
    catch (final NamingException e)
    {
        ex = new RuntimeException("JNDI lookup in @Oneway method failed", e);
    }
}
项目:OpenJSharp    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:openjdk-jdk10    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:openjdk9    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:SoapUI-Cookbook    文件:InvoicePortType.java   
@Oneway
@RequestWrapper(localName = "deleteInvoice", targetNamespace = "http://soapui.cookbook.samples/schema/invoice", className = "ws.invoice.v3.InvoiceRefType")
@WebMethod(action = "http://soapui.cookbook.samples/deleteInvoiceRequest/request")
public void deleteInvoice(
    @WebParam(name = "invoiceNo", targetNamespace = "http://soapui.cookbook.samples/schema/invoice")
    java.lang.String invoiceNo
);
项目:SoapUI-Cookbook    文件:InvoicePortType.java   
@Oneway
@RequestWrapper(localName = "deleteInvoice", targetNamespace = "http://soapui.cookbook.samples/schema/invoice", className = "ws.invoice.v3.InvoiceRefType")
@WebMethod(action = "http://soapui.cookbook.samples/deleteInvoiceRequest/request")
public void deleteInvoice(
    @WebParam(name = "invoiceNo", targetNamespace = "http://soapui.cookbook.samples/schema/invoice")
    java.lang.String invoiceNo
);
项目:lookaside_java-1.8.0-openjdk    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:jbossws-cxf    文件:EndpointOneImpl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:EndpointTwoEJB3Impl.java   
@WebMethod
@Oneway
public void sayHelloOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("sayHelloOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:EndpointOneEJB3Impl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:EndpointTwoImpl.java   
@WebMethod
@Oneway
public void sayHelloOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("sayHelloOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:EndpointOneImpl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:EndpointOneImpl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   count1.incrementAndGet();
   MessageContext msgContext = context.getMessageContext();
   HttpServletRequest request = (HttpServletRequest)msgContext.get(MessageContext.SERVLET_REQUEST);
   final String scheme = request.getScheme();
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input + ", scheme: " + scheme);
   if (scheme != null) {
      count2.incrementAndGet();
   }
}
项目:jbossws-cxf    文件:EndpointOneEJB3Impl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   count.addAndGet(5);
}
项目:jbossws-cxf    文件:EndpointTwoImpl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   super.echoOneWay(input);
}
项目:jbossws-cxf    文件:EndpointOneImpl.java   
@WebMethod
@Oneway
public void echoOneWay(String input)
{
   Logger.getLogger(this.getClass()).info("echoOneWay: " + input);
   count.incrementAndGet();
}
项目:jbossws-cxf    文件:PingService.java   
/**
 * 
 * @param secHeader
 * @param ping
 */
@WebMethod(operationName = "SecurePing")
@Oneway
public void securePing(
    @WebParam(name = "Ping", partName = "Ping")
    PingDocument ping,
    @WebParam(name = "SecHeader", targetNamespace = "http://www.openuri.org/jsr181/WebParamExample", header = true, partName = "SecHeader")
    SecurityHeader secHeader);
项目:jbossws-cxf    文件:PingEndpointImpl.java   
@WebMethod
@Oneway
public void ping()
{
   log.info("ping");
   feedback = "ok";
}
项目:muleebmsadapter    文件:EbMSPortType.java   
@Oneway
@WebMethod(operationName = "Message", action = "ebXML")
public void message(
    @WebParam(partName = "MessageHeader", name = "MessageHeader", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.MessageHeader messageHeader,
    @WebParam(partName = "SyncReply", name = "SyncReply", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.SyncReply syncReply,
    @WebParam(partName = "MessageOrder", name = "MessageOrder", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.MessageOrder messageOrder,
    @WebParam(partName = "AckRequested", name = "AckRequested", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.AckRequested ackRequested,
    @WebParam(partName = "Manifest", name = "Manifest", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd")
    nl.clockwork.mule.ebms.model.ebxml.Manifest manifest
);
项目:muleebmsadapter    文件:EbMSPortType.java   
@Oneway
@WebMethod(operationName = "MessageError", action = "ebXML")
public void messageError(
    @WebParam(partName = "MessageHeader", name = "MessageHeader", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.MessageHeader messageHeader,
    @WebParam(partName = "ErrorList", name = "ErrorList", targetNamespace = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", header = true)
    nl.clockwork.mule.ebms.model.ebxml.ErrorList errorList
);
项目:infobip-open-jdk-8    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:pfm-mustic9    文件:Master_Attack_WS.java   
/**
 * Creates full attack
 */
@Oneway
@WebMethod
public void createFullAttack(@WebParam(name="createFullAttackRequest") CreateFullAttackRequest createFullAttackRequest) {
    // Execute query
    activeAttackDao.createFullAttack(attackWindowsDao,
                                     createFullAttackRequest.getTool(), createFullAttackRequest.getAttackType(), 
                                     createFullAttackRequest.getRemoteUser(), createFullAttackRequest.getRemoteIp(),
                                     createFullAttackRequest.getRemotePort(), createFullAttackRequest.getExtraParam(),
                                     createFullAttackRequest.getHashToCrack(), createFullAttackRequest.getNotifyToEmail(),
                                     createFullAttackRequest.getWindowSize(), createFullAttackRequest.getTotalWords());
}
项目:pfm-mustic9    文件:Master_Attack_WS.java   
/**
 * Deletes full attack
 */
@Oneway
@WebMethod
public void removeFullAttack(@WebParam(name="removeFullAttackRequest") RemoveFullAttackRequest removeFullAttackRequest) {
    // Execute query
    activeAttackDao.removeFullAttack(removeFullAttackRequest.getId());
}
项目:openstack    文件:InstallOpenStackVM_Custom_InstallVM.java   
@WebMethod
@SOAPBinding
@Oneway
public void TerminateVMbyServerId(
    @WebParam(name="credentials", targetNamespace="http://types.opentosca.org/") String credentials,
    @WebParam(name="endpointsAPI", targetNamespace="http://types.opentosca.org/") String endpointsAPI,
    @WebParam(name="serverId", targetNamespace="http://types.opentosca.org/") String serverId
) {
    // This HashMap holds the return parameters of this operation.
    final HashMap<String,String> returnParameters = new HashMap<String, String>();
    try 
    {
        ICloudProviderAPI CP = CloudProviderAPIFactory.createCP(endpointsAPI);
        //String privKey = CP.GetKeypair(credentials, endpointsAPI, keypair);       

        CP.TerminateVM(credentials, endpointsAPI, serverId);

        returnParameters.put("success", "true");

        sendResponse(returnParameters);         
    }       
    catch (Exception npe) 
    {
        npe.printStackTrace();
        System.out.println("npe.getClass:"+ npe.getClass());
        sendFaultResponse("ws04", "General exception.");                        
    }       
}
项目:OLD-OpenJDK8    文件:WebServiceVisitor.java   
protected void verifyImplAnnotations(TypeElement d) {
    for (ExecutableElement method : ElementFilter.methodsIn(d.getEnclosedElements())) {
        checkForInvalidImplAnnotation(method, WebMethod.class);
        checkForInvalidImplAnnotation(method, Oneway.class);
        checkForInvalidImplAnnotation(method, WebResult.class);
        for (VariableElement param : method.getParameters()) {
            checkForInvalidImplAnnotation(param, WebParam.class);
        }
    }
}
项目:wso2-axis2    文件:AddNumbersPortType.java   
/**
 * 
 * @param arg0
 */
@WebMethod
@Oneway
@RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/addnumbers", className = "org.test.addnumbers.OneWayInt")
public void oneWayInt(
    @WebParam(name = "arg0", targetNamespace = "http://org/test/addnumbers")
    int arg0);
项目:wso2-axis2    文件:DocumentLiteralWrappedProxy.java   
/**
 * 
 * @param onewayStr
 */
@WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn")
@Oneway
@RequestWrapper(localName = "oneWay", targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped", className = "org.test.proxy.doclitwrapped.sei.OneWay")
public void oneWay(
    @WebParam(name = "oneway_str", targetNamespace = "")
    String onewayStr);
项目:wso2-axis2    文件:JavaMethodsToMDCConverter.java   
/**
 * This method will drive the attachment of @Oneway annotation data to the
 * <code>MethodDescriptionComposite</code>
 *
 * @param mdc    - <code>MethodDescriptionComposite</code>
 * @param method - <code>Method</code>
 */
private void attachOnewayAnnotation(MethodDescriptionComposite mdc, Method
        method) {
    Oneway oneway = (Oneway)ConverterUtils.getAnnotation(Oneway.class, method);
    if (oneway != null) {
        mdc.setOneWayAnnot(true);
    } else {
        mdc.setOneWayAnnot(false);
    }
}
项目:wso2-axis2    文件:DocLitWrappedProxy.java   
/**
 * 
 */
@WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn")
@Oneway
@RequestWrapper(localName = "oneWayVoid",
                targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped",
                className = "org.test.proxy.doclitwrapped.OneWayVoid")
public void oneWayVoid();
项目:wso2-axis2    文件:DocLitWrappedProxy.java   
/** @param onewayStr  */
@WebMethod(action = "http://org.apache.axis2.proxy.doclitwrapped/twoWayReturn")
@Oneway
@RequestWrapper(localName = "oneWay",
                targetNamespace = "http://org.apache.axis2.proxy.doclitwrapped",
                className = "org.test.proxy.doclitwrapped.sei.OneWay")
public void oneWay(
        @WebParam(name = "oneway_str", targetNamespace = "") String onewayStr);
项目:wso2-axis2    文件:DocLitWrappedProxy.java   
/**
 * 
 * @param onewayStr
 */
@WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
@Oneway
@RequestWrapper(localName = "oneWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.sei.OneWay")
public void oneWay(
    @WebParam(name = "oneway_str", targetNamespace = "")
    String onewayStr);
项目:wso2-axis2    文件:GorillaInterface.java   
/**
 * 
 * @param request
 */
@WebMethod
@Oneway
@RequestWrapper(localName = "echoPolymorphicDate", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoPolymorphicDate")
public void echoPolymorphicDate(
    @WebParam(name = "request", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
    XMLGregorianCalendar request);
项目:wso2-axis2    文件:DocLitWrap.java   
/**
 * 
 * @param onewayStr
 */
@WebMethod(action = "http://wrap.sample.test.org/twoWayReturn")
@Oneway
@RequestWrapper(localName = "oneWay", targetNamespace = "http://wrap.sample.test.org", className = "org.test.sample.wrap.OneWay")
public void oneWay(
    @WebParam(name = "oneway_str", targetNamespace = "")
    String onewayStr);
项目:wso2-axis2    文件:AddNumbersHandlerPortType.java   
/**
 * 
 * @param arg0
 */
@WebMethod
@Oneway
@RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/addnumbershandler", className = "org.test.addnumbershandler.OneWayInt")
public void oneWayInt(
    @WebParam(name = "arg0", targetNamespace = "http://org/test/addnumbershandler")
    int arg0);
项目:wso2-axis2    文件:AddNumbersPortType.java   
/**
 * 
 * @param arg0
 */
@WebMethod
@Oneway
@RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/addnumbers", className = "org.test.addnumbers.OneWayInt")
public void oneWayInt(
    @WebParam(name = "arg0", targetNamespace = "http://org/test/addnumbers")
    int arg0);
项目:wso2-axis2    文件:HeadersHandlerPortType.java   
/**
 * 
 * @param arg0
 */
@WebMethod
@Oneway
@RequestWrapper(localName = "oneWayInt", targetNamespace = "http://org/test/headershandler", className = "org.test.headershandler.OneWayInt")
public void oneWayInt(
    @WebParam(name = "arg0", targetNamespace = "http://org/test/headershandler")
    int arg0);
项目:WSO2-Deployer-Maven-Plugin    文件:WebappAdminPortType.java   
@Oneway
@Action(input = "urn:expireAllSessions")
@RequestWrapper(localName = "expireAllSessions", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ExpireAllSessions")
@WebMethod(action = "urn:expireAllSessions")
public void expireAllSessions(
    @WebParam(name = "webappFileName", targetNamespace = "http://org.apache.axis2/xsd")
    java.lang.String webappFileName
);
项目:WSO2-Deployer-Maven-Plugin    文件:WebappAdminPortType.java   
@Oneway
@Action(input = "urn:changeDefaultAppVersion", fault = {@FaultAction(className = WebappAdminArtifactMetadataException.class, value = "urn:changeDefaultAppVersionWebappAdminArtifactMetadataException")})
@RequestWrapper(localName = "changeDefaultAppVersion", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ChangeDefaultAppVersion")
@WebMethod(action = "urn:changeDefaultAppVersion")
public void changeDefaultAppVersion(
    @WebParam(name = "appGroupName", targetNamespace = "http://org.apache.axis2/xsd")
    java.lang.String appGroupName,
    @WebParam(name = "fileName", targetNamespace = "http://org.apache.axis2/xsd")
    java.lang.String fileName
) throws WebappAdminArtifactMetadataException;
项目:WSO2-Deployer-Maven-Plugin    文件:WebappAdminPortType.java   
@Oneway
@Action(input = "urn:reloadWebapps")
@RequestWrapper(localName = "reloadWebapps", targetNamespace = "http://org.apache.axis2/xsd", className = "axis2.apache.org.xsd.ReloadWebapps")
@WebMethod(action = "urn:reloadWebapps")
public void reloadWebapps(
    @WebParam(name = "webappFileNames", targetNamespace = "http://org.apache.axis2/xsd")
    java.util.List<java.lang.String> webappFileNames
);