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:

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("") .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 SevenZip.Archive.SevenZip.Handler

            Handler archive;
            super.log.logFine("opening 7zip archive...");
            try {
                archive = new Handler(source);
            } catch (final IOException e) {
                throw new Parser.Failure("error opening 7zip archive: " + e.getMessage(), location);
            final SZParserExtractCallback aec = new SZParserExtractCallback(super.log, archive,
                    doc, location.getFile());
            super.log.logFine("processing archive contents...");
            try {
                archive.Extract(null, -1, 0, aec);
                return doc;  
            } catch (final IOException e) {
                if (e.getCause() instanceof InterruptedException)
                    throw (InterruptedException)e.getCause();
                if (e.getCause() instanceof Parser.Failure)
                    throw (Parser.Failure)e.getCause();
                throw new Parser.Failure(
                        "error processing 7zip archive at internal file " + aec.getCurrentFilePath() + ": " + e.getMessage(),
            } finally {
                try { archive.close(); } catch (final IOException e) {  }
    View Full Code Here

    Examples of android.os.Handler

        private Handler handler;
        private XMLRPCMethodCallback callBack;
        public XMLRPCMethod(String method, XMLRPCMethodCallback callBack) {
          this.method = method;
          this.callBack = callBack;
          handler = new Handler();
    View Full Code Here

    Examples of cc.catalysts.cdoclet.handler.Handler

        return null;

      private static Handler createHandler(Generator generator, ClassDoc classDoc) {
        Handler handler;

        if (classDoc.isInterface()) {
          handler = new InterfaceHandler(generator);
        } else if (classDoc.isEnum()) {
          handler = new EnumHandler(generator);
    View Full Code Here

    Examples of cloudsync.helper.Handler

        String name = options.getName();

        final LocalFilesystemConnector localConnection = new LocalFilesystemConnector(options.getPath());

        Handler handler = null;

        try {

          String remoteConnectorName = options.getRemoteConnector();
          RemoteConnector remoteConnector = null;
          try {
            remoteConnector = (RemoteConnector) Class.forName("cloudsync.connector.Remote" + remoteConnectorName + "Connector").newInstance();
          } catch (IllegalAccessException e) {
          } catch (InstantiationException e) {
          } catch (ClassNotFoundException e) {
            throw new CloudsyncException("Remote connector '" + remoteConnectorName + "' not found", e);

          remoteConnector.init(name, options);

          final long start = System.currentTimeMillis();

          SyncType type = options.getType();
          String[] includePatterns = options.getIncludePatterns();
          if (includePatterns != null) {
            LOGGER.log(Level.FINEST, "use include pattern: " + "[^" + StringUtils.join(includePatterns, "$] | [$") + "$]");
          String[] excludePatterns = options.getExcludePatterns();
          if (excludePatterns != null) {
            LOGGER.log(Level.FINEST, "use exclude pattern: " + "[^" + StringUtils.join(excludePatterns, "$] | [$") + "$]");

          handler = new Handler(name, localConnection, remoteConnector, new Crypt(options.getPassphrase()), options.getDuplicate(), options.getFollowLinks(), options.getPermissionType());
          handler.init(type, options.getCacheFile(), options.getLockFile(), options.getPIDFile(), options.getNoCache(), options.getForceStart());

          switch (type) {
          case BACKUP:
            handler.backup(!options.isTestRun(), includePatterns, excludePatterns);
          case RESTORE:
            handler.restore(!options.isTestRun(), includePatterns, excludePatterns);
          case LIST:
            handler.list(includePatterns, excludePatterns);
          case CLEAN:

          final long end = System.currentTimeMillis();

          LOGGER.log(Level.INFO, "runtime: " + ((end - start) / 1000.0f) + " seconds");
        } finally {

          try {
            if (handler != null)
          } catch (CloudsyncException e) {
            throw e;
    View Full Code Here

    Examples of cn.edu.hfut.dmic.webcollector.handler.Handler

         * 通过failed方法来处理失败抓取的页面
         * @return 处理抓取消息的Handler
        public Handler createFetcherHandler() {
            Handler fetchHandler = new Handler() {
                public void handleMessage(Message msg) {
                    Page page = (Page) msg.obj;
                    switch (msg.what) {
                        case Fetcher.FETCH_SUCCESS:
    View Full Code Here

    Examples of com.ateam.webstore.handlers.Handler

            else if (req.getParameterMap().containsKey(Parameters.PRODUCT.getId())) {
              ProductHandler ph = new ProductHandler(req);
              v = ph.getProductView(true, null);
            else {
              Handler h = new Handler(req);
              v = h.getAdminHomeView();
          else {
            Handler h = new Handler(req);
            v = h.getLoginView("Please Login", h.getMainAdminView());

          req.setAttribute(REQUEST_ATTRIBUTE_VIEW, v);
    View Full Code Here

    Examples of com.dbxml.labrador.Handler

          try {
             Key key = new Key(docName);

             // Let's see if we can interact with Labrador's HTTP Server for REST calls
             BrokerContext context = Broker.getInstance().getBrokerContext();
             Handler handler = context.getHandler();
             Endpoint endpoint = context.getRequestEndpoint();

             boolean restHandler = handler instanceof RESTHandler;
             boolean httpEndpoint = endpoint instanceof HTTPServerBase;
    View Full Code Here

    Examples of com.dianping.cat.broker.api.page.js.Handler

    public class ParseTest {

      public void test() {
        Handler analyzer = new Handler();
        String data = "aaa=1.1&a=1.1&abc=2.2&c=1.2&aaaa=11.1&abbbb=1.1&ssabc=2.2&sc=1.2";
        for (int i = 0; i < 1000; i++) {
          analyzer.parseValue("abc", data);

        Assert.assertEquals(analyzer.parseValue("aaa", "aaa=1.1"), "1.1");
        Assert.assertEquals(analyzer.parseValue("aaa", data), "1.1");
        Assert.assertEquals(analyzer.parseValue("a", data), "1.1");
        Assert.assertEquals(analyzer.parseValue("abc", data), "2.2");
        Assert.assertEquals(analyzer.parseValue("c", data), "1.2");
        Assert.assertEquals(analyzer.parseValue("aaaa", data), "11.1");
        Assert.assertEquals(analyzer.parseValue("abbbb", data), "1.1");
        Assert.assertEquals(analyzer.parseValue("ssabc", data), "2.2");
        Assert.assertEquals(analyzer.parseValue("sc", data), "1.2");
    View Full Code Here

    Examples of com.firefly.schedule.core.Handler

                /* 启动任务 */
                Handler handler = taskDefinition.getHandler();
                if(handler == null){
                  log.error("There is no handler to process!");
                ScheduledFuture<?> future = service.scheduleWithFixedDelay(handler, 0, taskDefinition.getFrequency(), TimeUnit.MILLISECONDS);
                taskDefinition.setStatus(TaskDefinition.OPENED); // 修改业务状态为运行中
                log.info("Task {"+taskId+"} is opened!");
            } catch (Exception e) {
    View Full Code Here

    Examples of com.google.gwt.event.logical.shared.AttachEvent.Handler

      TransitionAnchor(Navigation navigation, final Class<P> toPage, final Multimap<String, String> state) {
        this.navigation = Assert.notNull(navigation);
        this.toPageWidgetType = Assert.notNull(toPage);
        this.state = Assert.notNull(state);
        addAttachHandler(new Handler() {
          public void onAttachOrDetach(AttachEvent event) {
            if (event.isAttached())
              initHref(toPage, state);
    View Full Code Here
    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.