Examples of OutputMethod


Examples of jeeves.server.sources.ServiceRequest.OutputMethod

        if (isDebug()) debug("Raised exception while executing service\n" + Xml.getString(error));

        try {
            InputMethod input = req.getInputMethod();
      OutputMethod output = req.getOutputMethod();

            if (input == InputMethod.SOAP || output == OutputMethod.SOAP) {
        req.setStatusCode(code);
        req.beginStream("application/soap+xml; charset=UTF-8", cache);
View Full Code Here

Examples of jeeves.server.sources.ServiceRequest.OutputMethod

        //--- this logging is usefull for xml services that are called by javascript code
                if (isDebug()) debug("Service xml is :\n" + Xml.getString(response));

                InputMethod in = req.getInputMethod();
        OutputMethod out = req.getOutputMethod();

                if (in == InputMethod.SOAP || out == OutputMethod.SOAP) {

                    // Did we set up a status code for the response?
                    if (context.getStatusCode() != null) {
View Full Code Here

Examples of jeeves.server.sources.ServiceRequest.OutputMethod

  public Element dispatch(Element request, ServiceContext context, String cswServiceSpecificContraint)
  {
    context.info("Received:\n"+Xml.getString(request));

    InputMethod  im = context.getInputMethod();
    OutputMethod om = context.getOutputMethod();

    boolean inSOAP  = (im == InputMethod.SOAP);
    boolean outSOAP = (inSOAP || om == OutputMethod.SOAP);

    CatalogException exc;
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

    if (var2b == null) {
      var2b = "";
    }

    if (firstCall) {
      Outputmethod om = getOutputmethod(var1, var2, var2b, origVar, true);
      if (om != null) {
        outputList.add(om, var1, var2, var2b);
      } else {
        if (origVar != null && var2.length() > 0 && !var2.equals("*")) {
          Refdata rd = new Refdata(var1, origVar);
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

      }
    }

    // Check for duplicated definitions.
    for (int i = 0; i < list.size(); i++) {
      Outputmethod om = list.get(i);
      if (om.isClassDefinition()) {
        for (int j = i + 1; j < list.size(); j++) {
          Outputmethod om2 = list.get(j);
          if (om2.isClassDefinition() && om.getClassName().equals(om2.getClassName())) {
            writer.writeln("\n\"" + om.getClassName() + "\" already defined in row " + om.getRow() + ". Error in row " + om2.getRow() + ":\n" + om.getRow() + ". " + om.getStatement() + "\n" + om2.getRow() + ". " + om2.getStatement());
            return false;
          }
        }
      }
    }

    // Check for duplicated method signatures.
    for (int i = 0; i < list.size(); i++) {
      Outputmethod om = list.get(i);
      for (int j = i + 1; j < list.size(); j++) {
        Outputmethod om2 = list.get(j);
        if (om.getArgumentSignature().equals(om2.getArgumentSignature())) {
          writer.writeln("\nElement \"" + om.getArgName() + "\" already defined for \"" + om.getCargName() + "\" in row " + om.getRow() + "\nwith the same argument signature, error in row " + om2.getRow() + ":\n" + om.getRow() + ". " + om + "\n" + om2.getRow() + ". " + om2);
          return false;
        }
      }
    }
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

    }
    return false;
  }

  public String getArgClass() {
    Outputmethod om = getFirstOutputmethod();
    String argClass = getFirstOutputmethod().getArgClass();
    if (argClass != null) {
      return argClass;
    }
    if (om.isClassRef()) {
      return om.getClassRef();
    }
    return null;
  }
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

  public boolean isArgClassVariableDef() {
    return ovSet.isArgClassVariableDef(getFirstOutputmethod());
  }

  public boolean isSameOutputclass(Outputmethod compare) {
    Outputmethod om = getFirstOutputmethod();
    return om.isSameOutputclass(compare);
  }
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

  public void writeSetStatement(int phase, Out out) {
    List<Outputmethod> list = getList(phase);

    int cntClasses = cntClasses(phase);
   
    Outputmethod om2 = getFirstOutputmethod();
    if (cntClasses <= 1 && !((om2.getRefname().equals(om2.getCargName()) &&
      om2.getRefname().equals(om2.getArgName())))) {
      for (Outputmethod om : list) {
        if (om.isClass()) {
          if (om.isDefined()) {
                        PeekStatement peekStatement = new PeekStatement(om.getClassName(), om.getMethodName(), OutDatatype.CLASS, om.getOmargList());
                        peekStatement.setArgClass(om.getArgClass());
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

    }
  }

  // Used when executing the method List<Output>.contains().
  public boolean equals(Object o) {
    Outputmethod om = ((Output) o).getFirstOutputmethod();
    return getFirstOutputmethod().equals(om);
  }
View Full Code Here

Examples of net.sf.laja.parser.grammar.element.Outputmethod

      Ref ref2 = refList.getRef(var2);
      if (ref2 == null) {
        ref2 = refList.getRef(var2b);
      }
      if (ref1 != null && ref2 != null) {
        om = new Outputmethod();
        om.setRef(var1);
        om.setArg(ref2.getRefname());

        String argClass = ref2.getClassName();
        if (argClass == null) {
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.