Examples of accept()


Examples of org.apache.wink.client.Resource.accept()

            Cookie cookie = new Cookie(p.getKey(), String.valueOf(p.getValue()));
            resource.cookie(cookie);
        }

        resource.contentType(getContentType());
        resource.accept(getAccepts());

        //handles declarative headers configured on the composite
        for (HTTPHeader header : binding.getHttpHeaders()) {
            //treat special headers that need to be calculated
            if (header.getName().equalsIgnoreCase("Expires")) {
View Full Code Here

Examples of org.apache.xbean.asm.ClassReader.accept()

     * enum class.
     */
    private static boolean isEnum(byte[] bytes) {
        IsEnumVisitor isEnumVisitor = new IsEnumVisitor();
        ClassReader classReader = new ClassReader(bytes);
        classReader.accept(isEnumVisitor, ClassReader.SKIP_DEBUG);
        return isEnumVisitor.isEnum;
    }

    /**
     * Fast-parse the given class bytecode to determine if it is an
View Full Code Here

Examples of org.apache.xbean.asm4.ClassReader.accept()

        ByteArrayInputStream bais = new ByteArrayInputStream(classBytes);
        BufferedInputStream bis = new BufferedInputStream(bais);

        ClassWriter cw = new BCClassWriter(ClassWriter.COMPUTE_FRAMES, bc.getClassLoader());
        ClassReader cr = new ClassReader(bis);
        cr.accept(cw, 0);
        return cw.toByteArray();
    }

    private static class BCClassWriter extends ClassWriter {
        private final ClassLoader _loader;
View Full Code Here

Examples of org.apache.xbean.asm5.ClassReader.accept()

        ByteArrayInputStream bais = new ByteArrayInputStream(classBytes);
        BufferedInputStream bis = new BufferedInputStream(bais);

        ClassWriter cw = new BCClassWriter(ClassWriter.COMPUTE_FRAMES, bc.getClassLoader());
        ClassReader cr = new ClassReader(bis);
        cr.accept(cw, 0);
        return cw.toByteArray();
    }

    private static class BCClassWriter extends ClassWriter {
        private final ClassLoader _loader;
View Full Code Here

Examples of org.apache.xbean.finder.filter.ExcludeIncludeFilter.accept()

    }

    public void testExcludeInclude() {
        Filter filter = new ExcludeIncludeFilter(Filters.packages("org.foo.util"), Filters.packages("org.foo", "org.bar"));

        assertFalse(filter.accept("org.foo.Red"));
        assertFalse(filter.accept("org.bar.Red"));

        assertTrue(filter.accept("com.bar.Red"));
        assertTrue(filter.accept("org.foo.util.Blue"));
    }
View Full Code Here

Examples of org.apache.xbean.finder.filter.Filter.accept()

            while (iterator.hasNext()) {
                final StackTraceElement element = iterator.next();
                iterator.remove();

                // If we haven't yet reached an entry point, just keep going
                if (!start.accept(element.getClassName())) continue;

                // We found an entry point.
                // Fast-forward past this class
                while (iterator.hasNext() && element.getClassName().equals(iterator.next().getClassName())) iterator.remove();
View Full Code Here

Examples of org.apache.xbean.finder.filter.IncludeExcludeFilter.accept()

    }

    public void testIncludeExclude() {
        Filter filter = new IncludeExcludeFilter(Filters.packages("org.foo", "org.bar"), Filters.packages("org.foo.util"));

        assertTrue(filter.accept("org.foo.Red"));
        assertTrue(filter.accept("org.bar.Red"));

        assertFalse(filter.accept("com.bar.Red"));
        assertFalse(filter.accept("org.foo.util.Blue"));
    }
View Full Code Here

Examples of org.auto.comet.SocketHandler.accept()

      throw new DispatchException("Cant find comet handler by [" + uri
          + "]. Did you registered it?");
    }

    PushSocket socket = new PushSocket();
    boolean accept = service.accept(socket, request);
    PrintWriter write = response.getWriter();
    String commend = null;
    if (accept) {// 如果接受连接请求则创建连接
      socketManager.creatConnection(socket);
      commend = JsonProtocolUtils.getConnectionCommend(socket.getId());
View Full Code Here

Examples of org.candle.decompiler.intermediate.code.AbstractIntermediate.accept()

   
    trueOutcome.accept(this);
   
    //now, go back to if...
    this.current = block;
    falseOutcome.accept(this);

    if(this.current == block) {
      moveUp();
    }
  }
View Full Code Here

Examples of org.chromium.debug.core.model.LaunchParams.LookupMode.accept()

      mode = readLookupMode(getLaunchConfiguration());
    } catch (CoreException e) {
      ChromiumDebugPlugin.log(e);
      mode = LookupMode.DEFAULT_VALUE;
    }
    return mode.accept(MODE_TO_HANDLER_VISITOR);
  }

  private final LookupMode.Visitor<LookupModeHandler> MODE_TO_HANDLER_VISITOR =
      new LookupMode.Visitor<LookupModeHandler>() {
        @Override
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.