Examples of Handler

@author Sun Microsystems, Inc. @see HttpmdUtil @since 2.0 @com.sun.jini.impl This implementation of HTTPMD URLs uses the {@link Logger} namednet.jini.url.httpmd to log information at the following logging levels:

net.jini.url.httpmd
Level Description
{@link Levels#FAILED FAILED} URL input stream detects anincorrect message digest

See the {@link LogManager} class for one way to use the FAILEDlogging level in standard logging configuration files.

  • net.socialgamer.cah.handlers.Handler
    Implementations of this interface MUST also have a public static final String OP. There will be compile errors if they do not. @author Andy Janata (ajanata@socialgamer.net)
  • nexj.core.meta.workflow.Handler
    Interface implemented by event handling steps.
  • org.apache.activemq.transport.xmpp.command.Handler
    Represents a handler of a type of event @version $Revision: 467379 $
  • org.apache.axis.Handler
    @author Doug Davis (dug@us.ibm.com)
  • org.apache.axis2.engine.Handler
    A Handler represents a piece of message processing functionality in Axis2. Handlers are combined into chains and phases in order to provide customizable functionality such as security, reliability, etc. Handlers must be multi-thread safe and should keep all their state in Context objects (see the org.apache.axis2.context package).
  • org.apache.cocoon.webapps.authentication.components.Handler
    The authentication Handler. @author Carsten Ziegeler @version CVS $Id: Handler.java,v 1.1 2003/03/09 00:02:18 pier Exp $
  • org.apache.droids.api.Handler
    A handler is a component that uses the stream, the parse and url to invoke arbitrary business logic on the objects. @version 1.0
  • org.apache.harmony.beans.Handler
  • org.apache.harmony.luni.internal.net.www.protocol.jar.Handler
  • org.apache.hedwig.server.handlers.Handler
  • org.apache.openejb.resolver.maven.Handler
  • org.apache.synapse.rest.Handler
  • org.apache.tomcat.core.Handler
    The class that will generate the actual response. Each Handler has a "name" that will determine the content that it will handle. @author costin@dnt.ro
  • org.atmosphere.nettosphere.Handler
    A super simple Handler for managing web application. As simple as
    Nettosphere server = new Nettosphere.Builder().config( new Config.Builder() .host("127.0.0.1") .port(8080) .resource(new Handler() { void handle(AtmosphereResource r) { r.getResponse().write("Hello World".write("from Nettosphere").flush(); } }) .build()) .build(); server.start();
  • org.codehaus.xfire.handler.Handler

    A handler is just something that processes an XML message.

    If an exception occurrs in the invoke method, the entity which started the invocation, is responsible for turning the exception into a fault.

    @author Dan Diephouse @since Feb 18, 2004
  • org.directwebremoting.extend.Handler
    A handler is a very simple servlet that does not differentiate between GET and POST, or need complex setup beyond what the container can provide @author Joe Walker [joe at getahead dot ltd dot uk]
  • org.drools.core.xml.Handler
  • org.drools.xml.Handler
    @author mproctor
  • org.eclipse.jetty.server.Handler
    A Jetty Server Handler. A Handler instance is required by a {@link Server} to handle incomingHTTP requests. A Handler may: Handlers are passed the servlet API request and response object, but are not Servlets. The servlet container is implemented by handlers for context, security, session and servlet that modify the request object before passing it to the next stage of handling.
  • org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler
    URLStreamHandler the bundleentry protocol.
  • org.eclipse.osgi.framework.internal.protocol.bundleresource.Handler
    URLStreamHandler the bundleresource protocol.
  • org.eclipse.sisu.space.oops.Handler
  • org.exist.protocolhandler.protocols.xmldb.Handler
    com/developer/onlineTraining/protocolhandlers/" >A New Era for Java Protocol Handlers @see java.net.URLStreamHandler
  • org.gdbms.engine.data.persistence.Handler
    Handler that receives the SAX events from a Memento and stores the XML in a PrinWriter setted by the user @author Fernando Gonz�lez Cort�s
  • org.geoserver.console.GeoServerConsole.Handler
  • org.iq80.leveldb.impl.WriteBatchImpl.Handler
  • org.jzonic.jlo.handler.Handler
    This is the interface for the Handler. It defines all methods that must be implemented by all handlers. @author Andreas Mecky @author Terry Dye @created 9. M�rz 2002 @version 1.0
  • org.mortbay.jetty.Handler
  • org.objectweb.celtix.bus.transports.http.protocol.pipe.Handler
  • org.objectweb.util.monolog.api.Handler
    Handler is an output. For example a handler might be a console, a file, a socket, or a Logger. @author Sebastien Chassande-Barrioz
  • org.openbp.server.handler.Handler
    Generic handler. This class defines a hook for any kind of custom code, e. g. activity or event handlers. @author Heiko Erhardt
  • org.ops4j.pax.url.mvn.Handler
  • org.picketlink.config.federation.handler.Handler
  • org.picketlink.identity.federation.core.handler.config.Handler
    3.org/2001/XMLSchema}anyType"> <sequence> <element name="Option" type="{urn:picketlink:identity-federation:config:1.0}KeyValueType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
  • org.platformlayer.ops.Handler
  • org.restlet.Handler
  • org.rstudio.core.client.command.Handler
  • org.rstudio.studio.client.common.console.ProcessExitEvent.Handler
  • org.uiautomation.ios.command.Handler
  • org.vertx.java.core.Handler
    g">Tim Fox
  • org.wso2.carbon.registry.core.jdbc.handlers.Handler
    Base class of all handler implementations. Provides the methods that handlers should implement. This class also provides the data source, user realm, registry and repository instances to be used by handler implementations.

    Handlers can be chained by providing necessary filter combinations. But in such cases, handler authors should make sure that handlers in the chain do not perform conflicting operations. Unless there is a critical requirement and handler authors are confident that handlers do not have negative impact on each other, it is recommended that handlers are configured to execute only one handler per request.

    Handler instances may be accessed concurrently by multiple threads. Therefore, handlers should be thread safe. It is recommended that handlers are made stateless, instead of synchronizing them as it could become a performance bottleneck in highly concurrent environments.

    Implementations of handlers should be optimized to take the minimum time for processing. As the handlers are executed are always executed before executing the generic database layer code, time consuming operations in handlers could slow down the whole registry.

  • org.wymiwyg.rwcf.Handler
    @author reto
  • org.wymiwyg.wrhapi.Handler
  • play.api.mvc.Handler
  • pyttewebb.server.request.Handler
    Handler.java (UTF-8) Handles HTTP requests sent by the client. @author Mathias Andreasen
  • rabbit.handler.Handler
    This interface descsribes the methods neccessary to implement a handler. Besides this a constructor is also nedded @author Robert Olofsson
  • ratpack.handling.Handler
    sponder may just return a response to the client… class SimpleHandler implements Handler { void handle(Context exchange) { exchange.getResponse().send("Hello World!"); } } // A responder may add a response header, before delegating to the next in the pipeline… class DecoratingHandler implements Handler { void handle(Context exchange) { exchange.getResponse().getHeaders().set("Cache-Control", "no-cache"); exchange.next(); } } // Or a handler may conditionally respond… class ConditionalHandler implements Handler { void handle(Context exchange) { if (exchange.getRequest().getPath().equals("foo")) { exchange.getResponse().send("Hello World!"); } else { exchange.next(); } } } // A handler does not need to participate in the response, but can instead "route" the exchange to different handlers… class RoutingHandler implements Handler { private final Handler[] fooHandlers; public RoutingHandler(Handler... fooHandlers) { this.fooHandlers = fooHandlers; } void handle(Context exchange) { if (exchange.getRequest().getPath().startsWith("foo/")) { exchange.insert(fooHandlers); } else { exchange.next(); } } } // It can sometimes be appropriate to directly delegate to a handler, instead of using exchange.insert() … class FilteringHandler implements Handler { private final Handler nestedHandler; public FilteringHandler(Handler nestedHandler) { this.nestedHandler = nestedHandler; } void handle(Context exchange) { if (exchange.getRequest().getPath().startsWith("foo/")) { nestedHandler.handle(exchange); } else { exchange.next(); } } } @see Handlers @see Chain @see ratpack.registry.Registry
  • sunlabs.brazil.server.Handler
    The interface for writing HTTP handlers. Provides basic functionality to accept HTTP requests and dispatch to methods that handle the request.

    The {@link #init(Server,String)} method is called before thisHandler processes the first HTTP request, to allow it to prepare itself, such as by allocating any resources needed for the lifetime of the server.

    The {@link #respond(Request)} method is called to handle an HTTP request.This method, and all methods it calls must be thread-safe since they may handle HTTP requests from multiple sockets concurrently. However, each concurrent request gets its own individual {@link Request} object.

    Any instance variables should be initialized in the {@link #init(Server,String)}, and only referenced, but not set in the {@link #respond(Request)} method. If any state needs to be retained, it should be done either by associating it with the {@link Request}object, or using the {@link sunlabs.brazil.session.SessionManager session manager}. Class statics should be avoided, as it is possible, and even common to run multiple unrelated Brazil servers in the same JVM. As above, the {@link sunlabs.brazil.session.SessionManager session manager}should be used instead. @author Stephen Uhler (stephen.uhler@sun.com) @author Colin Stevens (colin.stevens@sun.com) @version 2.3


  • Examples of org.apache.axis2.engine.Handler

      public static String getExecutionChainString(ArrayList executionChain) {
        Iterator iter = executionChain.iterator();

        String executionChainStr = "";
        while (iter.hasNext()) {
          Handler handler = (Handler) iter.next();
          String name = handler.getName();
          executionChainStr = executionChainStr + Sandesha2Constants.EXECUTIN_CHAIN_SEPERATOR + name;
        }

        return executionChainStr;
      }
    View Full Code Here

    Examples of org.apache.cocoon.webapps.authentication.components.Handler

                                  ComponentManager manager)
        throws ProcessingException {
            AuthenticationManager authManager = null;
            try {
                authManager = (AuthenticationManager)manager.lookup(AuthenticationManager.ROLE);
                Handler handler = authManager.getHandler();
                this.name = contextName;
                this.authContext = context;
                this.handlerName = handlerName;
                this.applicationName = applicationName;
                this.authLoadResource = handler.getLoadResource();
                this.authSaveResource = handler.getSaveResource();
                this.authLoadResourceParameters = handler.getLoadResourceParameters();
                this.authSaveResourceParameters = handler.getSaveResourceParameters();
                if (this.applicationName != null) {
                    ApplicationHandler appHandler = (ApplicationHandler)handler.getApplications().get(this.applicationName);
                    this.loadResource = appHandler.getLoadResource();
                    this.saveResource = appHandler.getSaveResource();
                    this.loadResourceParameters = appHandler.getLoadResourceParameters();
                    this.saveResourceParameters = appHandler.getSaveResourceParameters();
                }
    View Full Code Here

    Examples of org.apache.droids.api.Handler

      }

      @Override
      public Worker<Link> getNewWorker() {
        final CrawlingWorker worker = new CrawlingWorker( this );
        Handler testHandler = new ExceptionReportHandler();
        worker.setHandlerFactory(DroidsFactory.createDefaultHandlerFactory(testHandler));
        return worker;
      }
    View Full Code Here

    Examples of org.apache.harmony.beans.Handler

                if (saxParserClassName == null) {
                    saxParserClassName = "org.apache.xerces.parsers.SAXParser"; //$NON-NLS-1$
                }
                XMLReader xmlReader = XMLReaderFactory
                        .createXMLReader(saxParserClassName);
                xmlReader.setContentHandler(new Handler(this, objects));
                if (classLoader != null) {
                    oldCL = Thread.currentThread().getContextClassLoader();
                    Thread.currentThread().setContextClassLoader(classLoader);
                }
                xmlReader.parse(new InputSource(is));
    View Full Code Here

    Examples of org.apache.harmony.luni.internal.net.www.protocol.jar.Handler

        public void test_Constructor$Ljava_net_URLLjava_lang_ClassLoaderLjava_net_URLStreamHandlerFactory()
                throws Exception {
            class TestFactory implements URLStreamHandlerFactory {
                public URLStreamHandler createURLStreamHandler(String protocol) {
                    if ("jar".equals(protocol)) {
                        return new Handler();
                    }

                    fail("Should be jar Handler. But " + protocol);
                    return null;
                }
    View Full Code Here

    Examples of org.apache.hedwig.server.handlers.Handler

                return;
            }

            PubSubProtocol.PubSubRequest request = (PubSubProtocol.PubSubRequest) e.getMessage();

            Handler handler = handlers.get(request.getType());
            Channel channel = ctx.getChannel();
            long txnId = request.getTxnId();

            if (handler == null) {
                sendErrorResponseToMalformedRequest(channel, txnId, "Request type " + request.getType().getNumber()
                                                    + " unknown");
                return;
            }

            handler.handleRequest(request, channel);
        }
    View Full Code Here

    Examples of org.apache.openejb.resolver.maven.Handler

                final String info = rawLocation.substring(ProvisioningUtil.MVN_PREFIX.length());
                final Parser parser = new Parser(info);
                final File file = cacheFile(parser.getArtifactPath());
                if (!file.exists() || !file.canRead()) {
                    try {
                        final URL url = new URL(ProvisioningUtil.MVN_PREFIX.substring(ProvisioningUtil.MVN_PREFIX.length() - 1), "localhost", -1, info, new Handler());
                        final File parentFile = file.getParentFile();
                        if (!parentFile.exists()) {
                            if (!parentFile.mkdirs()) {
                                throw new Exception("Failed to create: " + parentFile);
                            }
    View Full Code Here

    Examples of org.apache.synapse.rest.Handler

                handleException("A handler element must have a class attribute");
            }

            try {
                Class clazz = APIFactory.class.getClassLoader().loadClass(handlerClass);
                Handler handler = (Handler) clazz.newInstance();
                api.addHandler(handler);
            } catch (Exception e) {
                handleException("Error initializing API handler: " + handlerClass, e);
            }
        }
    View Full Code Here

    Examples of org.apache.tomcat.core.Handler

         " PI=" + newPathInfo);
     
       req.servletPath().setString(newServletPath);
      req.pathInfo().setString(newPathInfo);
     
      Handler wrapper = ctx.getServletByName(servletName);
      if (wrapper != null) {
          req.setHandler( wrapper );
          return 0;
      }
         
      // Dynamic add for the wrapper
     
      // even if the server doesn't supports dynamic mappings,
      // we'll avoid the interceptor for include() and
      // it's a much cleaner way to construct the servlet and
      // make sure all interceptors are up to date.
      try {
          ctx.addServletMapping( newServletPath + "/*" ,
               servletName );
          // The facade should create the servlet name
         
          Handler sw=ctx.getServletByName( servletName );
          //       sw.setContext(ctx);
          //       sw.setServletName(servletName);
          //      ctx.addServlet( sw );
          //      sw.setServletClass( servletName );
          //sw.setOrigin( Handler.ORIGIN_INVOKER );
    View Full Code Here

    Examples of org.atmosphere.nettosphere.Handler

            final CountDownLatch l = new CountDownLatch(1);

            Config config = new Config.Builder()
                    .port(port)
                    .host("127.0.0.1")
                    .resource(new Handler() {

                        @Override
                        public void handle(AtmosphereResource r) {
                            r.getResponse().write("Hello World from Nettosphere").closeStreamOrWriter();
                        }
    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.