Examples of handle()


Examples of eu.medsea.mimeutil.handler.TextMimeHandler.handle()

    // this MimeDetector works.
    TextMimeType mimeType = (TextMimeType)mimeTypes.iterator().next();

    for(Iterator it = handlers.iterator(); it.hasNext(); ) {
      TextMimeHandler tmh = (TextMimeHandler)it.next();
      if(tmh.handle(mimeType, content)) {
        // The first handler to return true will short circuit the rest of the handlers
        break;
      }
    }
    return mimeTypes;
View Full Code Here

Examples of gnu.javax.security.auth.callback.DefaultCallbackHandler.handle()

    TextInputCallback user =
      new TextInputCallback("User name for " + remoteHost + ": ",
                            Util.getProperty("user.name"));
    try
      {
        handler.handle(new Callback[] { user });
      }
    catch (Exception x) { }
    return user.getText();
  }
View Full Code Here

Examples of groovyx.remote.transport.http.RemoteControlHttpHandler.handle()

        log.debug("Handling remote request: [{}] {}", id, exchange);

        DC.put(RemoteScript.class, id);

        try {
          handler.handle(exchange);
        }
        catch (Throwable failure) {
          // HACK: Ignore this package-private exception as it seems to happen normally
          if ("sun.net.httpserver.StreamClosedException".equals(failure.getClass().getCanonicalName())) {
            log.trace("Ignoring", failure);
View Full Code Here

Examples of io.socket.implementor.transport.Transport.handle()

        Transport transport = createTransport(transportId, context, socket);
        if (transport == null) {
            resp.sendError(400, String.format("Socket %s does not exist", sid.toString()));
            return;
        }
        transport.handle(15000); // TODO make configurable
    }

    protected void handleHandshake(HttpContext context) throws IOException {
        Socket socket = create();
View Full Code Here

Examples of javax.faces.context.ExceptionHandler.handle()

    given(this.delegate.getExceptionHandler()).willReturn(exceptionHandler);
    ExceptionHandler actual = this.factory.getExceptionHandler();
    assertThat(actual, is(SpringExceptionHandler.class));
    assertThat(((SpringExceptionHandler) actual).getWrapped(), is(sameInstance(exceptionHandler)));
    // Check that the delegate is called
    actual.handle();
    verify(exceptionHandler).handle();
  }

}
View Full Code Here

Examples of javax.security.auth.callback.CallbackHandler.handle()

            return null;
        }
       
        WSPasswordCallback[] cb = {new WSPasswordCallback(userName, type)};
        try {
            handler.handle(cb);
        } catch (Exception e) {
            policyNotAsserted(info, e);
        }
       
        //get the password
View Full Code Here

Examples of match.handler.MatchHandler.handle()

        MemoryEventStore memoryEventStore = new MemoryEventStore();
        MatchHandler matchHandler = new MatchHandler(soccerMatch.getMatch(), memoryEventStore);

        // Start
        matchHandler.handle(new StartMatchCommand(matchId));


        // Give cards
        for (PlayerModel playerModel : soccerMatch.getPlayerSet()) {
            if (playerModel.getPlayerName().equals("frank")) {
View Full Code Here

Examples of mondrian.rolap.SqlStatement.handle()

                ++stmt.rowCount;
                return resultSet.getInt(1);
            }
            return -1; // huh?
        } catch (SQLException e) {
            throw stmt.handle(e);
        } finally {
            stmt.close();
        }
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.persistence.TweetPersister.handle()

                        @Override
                        public void handle(final Tweet tweet) throws HandlerException {
                            System.out.println("got this tweet: " + tweet);

                            buffer.clear();
                            persister.handle(tweet);

                            if (0 < buffer.size()) {
                                Collection<Statement> c = new LinkedList<Statement>();
                                c.addAll(buffer);
                                datasetHandler.handle(new Dataset(c));
View Full Code Here

Examples of net.fortytwo.twitlogic.syntax.TweetAnnotator.handle()

                                        c.begin();
                                    } catch (SailException e) {
                                        throw new HandlerException(e);
                                    }

                                     annotator.handle(tweet);
                                }
                            };
                            Handler<Tweet> deleter = new TweetDeleter(store);

                            TweetReceivedLogger rLogger = new TweetReceivedLogger(client.getStatistics(), adder);
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.