Examples of Method


Examples of org.apache.solr.servlet.cache.Method

          if( handler != null ) {
            if( solrReq == null ) {
              solrReq = parser.parse( core, path, req );
            }

            final Method reqMethod = Method.getMethod(req.getMethod());
            HttpCacheHeaderUtil.setCacheControlHeader(config, resp, reqMethod);
            if (config.getHttpCachingConfig().isNever304() ||
                !HttpCacheHeaderUtil.doCacheHeaderValidation(solrReq, req, reqMethod, resp)) {
                SolrQueryResponse solrRsp = new SolrQueryResponse();
                this.execute( req, handler, solrReq, solrRsp );
View Full Code Here

Examples of org.apache.wicket.ajax.attributes.AjaxRequestAttributes.Method

    JSONObject attributesJson = new JSONObject();

    try
    {
      attributesJson.put("u", getCallbackUrl());
      Method method = attributes.getMethod();
      if (Method.POST == method)
      {
        attributesJson.put("m", method);
      }
View Full Code Here

Examples of org.apache.xml.utils.synthetic.reflection.Method

        "com.ibm.org.apache.xml.utils.synthetic.BuildMe");
      Class inner = myC.declareInnerClass("island");

      inner.addExtends(Class.forName("java.lang.String"));

      Method m = inner.declareMethod("getValue");

      m.setReturnType(Class.forName("java.lang.String"));
      m.getBody().append("return toString();");
      myC.toSource(System.out, 0);
    }
    catch (ClassNotFoundException e)
    {
      e.printStackTrace();
View Full Code Here

Examples of org.ardverk.dht.storage.message.Method

    InputStream in = null;
    try {
      in = value.getContent();
     
      Request request = Request.valueOf(in);
      Method method = request.getMethod();
     
      Response response = null;
      switch (method) {
        case PUT:
          response = handlePut(src, key, request, in);
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.Method

    if (exceptionsThrown.size() > 0) {
      addAttribute(et = getExceptionTable(cp)); // Add `Exceptions' if there are "throws" clauses
    }

    Method m = new Method(modifiers, name_index, signature_index, getAttributesImmutable(), cp);

    // Undo effects of adding attributes
    // OPTIMIZE why redo this? is there a better way to clean up?
    if (lvt != null) {
      removeCodeAttribute(lvt);
View Full Code Here

Examples of org.bioversityinternational.model.germplasm.CropDescriptorQuery.Trait.Method

       
        trait.setName(language_code, valueMap.get("traitName") ) ;
        trait.setDefinition(language_code, valueMap.get("traitDefinition") ) ;
        String methodURI = valueMap.get("method") ;
        if(methodURI != null) {
          Method method = trait.getMethod( methodURI ) ;
          method.setName(language_code, valueMap.get("methodName") ) ;
          method.setDefinition(language_code, valueMap.get("methodDefinition") ) ;
          String scaleURI = valueMap.get("scale") ;
          if(scaleURI != null) {
            Scale scale = method.getScale( scaleURI ) ;
            scale.setName(language_code, valueMap.get("scaleName") ) ;
            scale.setType(valueMap.get("scaleType") ) ;
            scale.setDefinition(language_code,  valueMap.get("scaleDefinition") ) ;
            scale.setUnit( valueMap.get("scoreUnit") ) ;
            String code = valueMap.get("code") ;
View Full Code Here

Examples of org.cx4a.rsense.typing.runtime.Method

        return vertex;
    }

    public static void methodPartialUpdate(Graph graph, MethodDefNode node, DynamicMethod newMethod, DynamicMethod oldMethod, IRubyObject receiver) {
        if (newMethod instanceof Method && oldMethod instanceof Method) {
            Method newmeth = (Method) newMethod;
            Method oldmeth = (Method) oldMethod;
            NodeDiff nodeDiff = graph.getNodeDiff();

            if (nodeDiff != null
                && nodeDiff.noDiff(node.getArgsNode(), oldmeth.getArgsNode())
                && nodeDiff.noDiff(node.getBodyNode(), oldmeth.getBodyNode())) { // XXX nested class, defn
                // FIXME annotation diff
                newmeth.shareTemplates(oldmeth);
            } else {
                Logger.debug(SourceLocation.of(node), "templates not shared: %s", newmeth);
            }
View Full Code Here

Examples of org.destecs.tools.jprotocolgenerator.ast.Method

  public String generate(IInterface intf, String outputFolder)
  {
    stryctInterface = new IInterface();
    stryctInterface.setName("IStruct");

    Method toMapMethod = new Method();
    toMapMethod.name = "toMap";
    toMapMethod.returnType = new FreeTextType("Map<String,? extends Object>");// new Type( new MapType(new
    // Type(String.class), new
    // Type(Object.class));
    stryctInterface.imports.add(new Type(Map.class));
View Full Code Here

Examples of org.deuce.objectweb.asm.commons.Method

      super.visitMethodInsn(opcode, owner, name, desc); // ... = foo( ...
    }
    else
    {//Changing the foo(arg) to foo(arg, context);
      super.visitVarInsn(Opcodes.ALOAD, argumentsSize - 1); // load context
      Method newMethod = ClassTransformer.createNewMethod(name, desc);
      super.visitMethodInsn(opcode, owner, name, newMethod.getDescriptor()); // ... = foo( ...
    }
  }
View Full Code Here

Examples of org.fusesource.restygwt.client.Method

  }

  public void testPassOnOfHeaders(){
      Map<String, String> headers = new HashMap<String, String>();
      headers.put("X-CustomHeader", "123456789");
      Method method = new Resource("http://localhost", headers).get();
      assertEquals("123456789",method.builder.getHeader("X-CustomHeader"));
  }
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.