Examples of ResponseContainer


Examples of it.eng.spago.base.ResponseContainer

    DatasetMap datasets=null;
    ChartImpl sbi=null;

    //RequestContainer requestContainer=RequestContainer.getRequestContainer();
    SourceBean serviceRequest=requestContainer.getServiceRequest();
    ResponseContainer responseContainer=ResponseContainer.getResponseContainer();
    EMFErrorHandler errorHandler=responseContainer.getErrorHandler();
    SourceBean content = getTemplate(obj.getId().toString());

    //    **************take informations on the chart type*****************
    try{
      String type=content.getName();
View Full Code Here

Examples of it.eng.spago.base.ResponseContainer

   * @throws JspException the jsp exception
   */
  public int doStartTag() throws JspException {
    httpRequest = (HttpServletRequest) pageContext.getRequest();
    RequestContainer requestContainer = ChannelUtilities.getRequestContainer(httpRequest);
    ResponseContainer responseContainer = ChannelUtilities.getResponseContainer(httpRequest);
    SourceBean serviceRequest = requestContainer.getServiceRequest();
    SourceBean serviceResponse = responseContainer.getServiceResponse();
    SourceBean moduleResponse = (SourceBean)serviceResponse.getAttribute(moduleName);
    List functionalitiesList = null;
    if (attributeToRender == null || attributeToRender.trim().equals("")) {
      functionalitiesList = (List) moduleResponse.getAttribute(SpagoBIConstants.FUNCTIONALITIES_LIST);
    } else {
View Full Code Here

Examples of it.eng.spago.base.ResponseContainer

   
    SourceBean serviceRequest = reqCont.getServiceRequest();
    SessionContainer sessionContainer = reqCont.getSessionContainer();
    SessionContainer permanentSession = sessionContainer.getPermanentContainer();
        profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    ResponseContainer responseContainer = ChannelUtilities.getResponseContainer(httpRequest);
    SourceBean serviceResponse = responseContainer.getServiceResponse();
    BIObject obj = (BIObject) serviceResponse.getAttribute("DetailBIObjectModule." + DetailBIObjectModule.NAME_ATTR_OBJECT);
       
    StringBuffer htmlStream = new StringBuffer();
    htmlStream.append("<LINK rel='StyleSheet' href='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/css/dtree.css", currTheme )+"' type='text/css' />");
    //makeConfigurationDtree(htmlStream);
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

   */
  @Override
  void pickResponses(Iterator<ResponseContainer> responseIterator)
      throws TraCIException {
   
    ResponseContainer respc = responseIterator.next();
    StatusResponse statusResp = respc.getStatus();
    Utils.checkStatusResponse(statusResp, commandID);
   
  }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

    return Collections.singletonList(cmd);
  }

  @Override
  void pickResponses(Iterator<ResponseContainer> responseIterator) throws TraCIException {
    ResponseContainer respc = responseIterator.next();
    StatusResponse statusResp = respc.getStatus();
    Utils.checkStatusResponse(statusResp, commandID);
    Command resp = respc.getResponse();
    Utils.checkByte(resp.content(), varID);
    Utils.checkObjectID(resp.content(), objectID);
   
    V value = readValue(resp);
    setDone(value);
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

    reqm.writeTo(outStream);
   
    ResponseMessage respm = new ResponseMessage(inStream);
    assertEquals(1, respm.responses().size());
   
    ResponseContainer pair = respm.responses().get(0);
    assertEquals(Constants.CMD_GETVERSION, pair.getStatus().id());
   
    Command resp = pair.getResponse();
    assertEquals(Constants.CMD_GETVERSION, resp.id());
    assertEquals(1, resp.content().readInt());
    System.out.println(resp.content().readStringASCII());
  }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

    reqm.writeTo(outStream);
   
    ResponseMessage respm = new ResponseMessage(inStream);
    assertEquals(1, respm.responses().size());
   
    ResponseContainer pair = respm.responses().get(0);
    assertEquals(Constants.CMD_CLOSE, pair.getStatus().id());
    assertEquals("Goodbye", pair.getStatus().description()); // undocumented!
   
    assertNull(pair.getResponse());
  }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

    reqm.writeTo(outStream);
   
    ResponseMessage respm = new ResponseMessage(inStream);
    assertEquals(1, respm.responses().size());
   
    ResponseContainer pair = respm.responses().get(0);
    assertEquals(Constants.CMD_GETVERSION, pair.getStatus().id());
   
    Command resp = pair.getResponse();
    assertEquals(Constants.CMD_GETVERSION, resp.id());
    assertEquals(API_VERSION, resp.content().readInt());
    log.info(resp.content().readStringASCII());
  }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

    reqm.writeTo(outStream);
   
    ResponseMessage respm = new ResponseMessage(inStream);
    assertEquals(1, respm.responses().size());
   
    ResponseContainer pair = respm.responses().get(0);
    assertEquals(Constants.CMD_CLOSE, pair.getStatus().id());
   
    assertNull(pair.getResponse());
  }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.ResponseContainer

  }
 
  public synchronized Object do_job_get(SumoCommand sc) throws IOException{
   
    Object output = null;
    ResponseContainer rc = queryAndVerifySingle(sc.cmd);
    Command resp = rc.getResponse();
 
    verifyGetVarResponse(resp, sc.response, sc.input2, sc.input3);
    verify("", sc.output_type, (int)resp.content().readUnsignedByte());
   
    if(sc.output_type == Constants.TYPE_INTEGER){output = resp.content().readInt();
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.