@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return ServletProxyFactory.getDefault().proxy(proxy, method, args); } }
@Override public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { filterChain.invokeFilterChain(req, res); }
@Override public void invalidate() { fake = null; super.invalidate(); } };
protected synchronized void configExecutors() { if (shared) { handleExecutors = false; isExecutorShared = true; isAsyncExecutorShared = true; } executorService = ExecutorsFactory.getMessageDispatcher(config, broadcasterId); asyncWriteService = ExecutorsFactory.getAsyncOperationExecutor(config, broadcasterId); scheduler = ExecutorsFactory.getScheduler(config); }
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ final public static boolean setProperty(Object o, String name, String value) { String setter = "set" + capitalize(name); return invokeProperty(o, setter, name, value); }
@Override public void destroy() { filterChain.destroy(); }
public final static ServletContextFactory getDefault() { if (servletContextFactory == null) servletContextFactory = new ServletContextFactory(); return servletContextFactory; } }
@Override public ServletConfig getServletConfig() { return filterChain.getServletConfig(); }
@Override public void init(ServletConfig sc) throws ServletException { filterChain.init(); }
public static ServletProxyFactory getDefault() { if (factory == null) { factory = new ServletProxyFactory(); } return factory; }
/** * Read the specified number of bytes into an array. * * @param b the byte array to read into * @return the number of bytes read or <code>-1</code> * if the end of the stream has been reached * @throws java.io.IOException if an I/O error occurs */ @Override public int read(byte[] b) throws IOException { return read(b, 0, b.length); }
@Override protected void queueWriteIO(AtmosphereResource r, Deliver deliver, AtomicInteger count) throws InterruptedException { executeBlockingWrite(r, deliver, count); } }
@Override public java.util.concurrent.ForkJoinWorkerThread newThread(java.util.concurrent.ForkJoinPool pool) { return new JDK7ForkJoinWorkerThread(pool, ForkJoinPool.this.shared, threadName); } }, null, false);
@Override public void started(AtmosphereFramework framework) { needRequestScopedInjection = Utils.requestScopedInjection(config, atmosphereHandler); } });
public String computePath(AtmosphereRequest req) { return Utils.pathInfo(req); }
static int firstInvalidCookieNameOctet(CharSequence cs) { return firstInvalidOctet(cs, VALID_COOKIE_NAME_OCTETS); }
@Override public Future<Object> broadcast(Object msg) { return b(msg); }
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return ServletProxyFactory.getDefault().proxy(proxy, method, args); } });
final public static boolean addProperty(Object o, String name, String value) { String setter = "add" + capitalize(name); return invokeProperty(o, setter, name, value); }
@Override public void destroy() { filterChain.destroy(); }