Examples of responses()


Examples of it.polito.appeal.traci.protocol.ResponseMessage.responses()

   */
  protected ResponseContainer doQuerySingle(Command request) throws IOException {
    RequestMessage msg = new RequestMessage();
    msg.append(request);
    ResponseMessage resp = doQuery(msg);
    return resp.responses().iterator().next();
  }

  /**
   * Like {@link #queryAndVerify(RequestMessage)}, but good for one-command/
   * one-response queries.
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseMessage.responses()

   */
  protected ResponseContainer queryAndVerifySingle(Command request) throws IOException {
    RequestMessage msg = new RequestMessage();
    msg.append(request);
    ResponseMessage resp = queryAndVerify(msg);
    return resp.responses().iterator().next();
  }
 
  protected static String verifyGetVarResponse(Command resp, int commandID, int variable, String objectID) throws UnexpectedData {
    verify("response code", commandID, resp.id());
    verify("variable ID", variable, (int)resp.content().readUnsignedByte());
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseMessage.responses()

      }
    }
   
    reqMsg.writeTo(dos);
    ResponseMessage respMsg = new ResponseMessage(dis);
    Iterator<ResponseContainer> responseIterator = respMsg.responses().iterator();
    for (Query q : queries) {
      q.pickResponses(responseIterator);     
    }
  }
}
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

            // check Addressing annotation
            if (aRef.getAddressing() == null && addressing != null) {
                aRef.setAddressing(new com.sun.enterprise.deployment.Addressing(
                                        addressing.enabled(),
                                        addressing.required(),
                                        addressing.responses().toString()));
            }

            // check RespectBinding annotation
            if (aRef.getRespectBinding() == null && respectBinding != null) {
                aRef.setRespectBinding(
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

     
      // If the Addressing annotation was used, then get the responses value from it and map it to the
      // value the addressing handler expects
      if (addressing != null) {
          responses = new Parameter(AddressingConstants.WSAM_INVOCATION_PATTERN_PARAMETER_NAME,
                  mapResponseAttributeToAddressing(addressing.responses()));
      }
     
      try {
            AxisService service = endpointDescription.getAxisService();
        service.addParameter(namespace);
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

        if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
            ftr = null;
        } else if (a instanceof Addressing) {
            Addressing addAnn = (Addressing) a;
            try {
                ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
            } catch(NoSuchMethodError e) {
                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

            // check Addressing annotation
            if (aRef.getAddressing() == null && addressing != null) {
                aRef.setAddressing(new com.sun.enterprise.deployment.Addressing(
                                        addressing.enabled(),
                                        addressing.required(),
                                        addressing.responses().toString()));
            }

            // check RespectBinding annotation
            if (aRef.getRespectBinding() == null && respectBinding != null) {
                aRef.setRespectBinding(
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

        if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
            ftr = null;
        } else if (a instanceof Addressing) {
            Addressing addAnn = (Addressing) a;
            try {
                ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
            } catch(NoSuchMethodError e) {
                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

        if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
            ftr = null;
        } else if (a instanceof Addressing) {
            Addressing addAnn = (Addressing) a;
            try {
                ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
            } catch(NoSuchMethodError e) {
                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.responses()

        if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
            ftr = null;
        } else if (a instanceof Addressing) {
            Addressing addAnn = (Addressing) a;
            try {
                ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
            } catch(NoSuchMethodError e) {
                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.