Examples of execute()


Examples of org.fao.oaipmh.requests.GetRecordRequest.execute()

      GetRecordRequest req = new GetRecordRequest(transport);
      req.setSchemaPath(new File(context.getAppPath() + Geonet.SchemaPath.OAI_PMH));
      req.setIdentifier(ri.id);
      req.setMetadataPrefix(ri.prefix);

      GetRecordResponse res = req.execute();

      Element md = res.getRecord().getMetadata();

            if(log.isDebugEnabled()) log.debug("    - Record got:\n"+ Xml.getString(md));
View Full Code Here

Examples of org.fao.oaipmh.requests.ListMetadataFormatsRequest.execute()

    req.setSchemaPath(oaiSchema);

        XmlRequest t = req.getTransport();
    t.setUrl(new URL(url));
    Lib.net.setupProxy(context, t);
    ListMetadataFormatsResponse res = req.execute();

    //--- build response

    Element root = new Element("formats");
View Full Code Here

Examples of org.fao.oaipmh.requests.ListSetsRequest.execute()

      ListSetsRequest req = new ListSetsRequest(context.getBean(GeonetHttpRequestFactory.class));
      req.setSchemaPath(oaiSchema);
            XmlRequest t = req.getTransport();
      t.setUrl(new URL(url));
      Lib.net.setupProxy(context, t);
      ListSetsResponse res = req.execute();

      //--- build response

      while (res.hasNext())
      {
View Full Code Here

Examples of org.fcrepo.common.http.PreemptiveAuth.execute()

                            + " . . .");
                    Administrator.PROGRESS.setValue(100);
                    Administrator.PROGRESS.paintImmediately(0, 0, (int) d
                            .getWidth() - 1, (int) d.getHeight() - 1);
                }
                response = client.execute(get);
                resultCode = response.getStatusLine().getStatusCode();
                if (resultCode > 299 && resultCode < 400) {
                    redirectCount++;
                    url = response.getFirstHeader(HttpHeaders.LOCATION).getValue();
                }
View Full Code Here

Examples of org.flexunit.ant.launcher.commands.headless.XvncStartCommand.execute()

      xvncStart.setProject(project);
     
      LoggingUtil.log("Starting xvnc", true);
     
      // execute the maximum number of cycle times before throwing an exception
      while (xvncStart.execute() != 0)
      {
         LoggingUtil.log("Cannot start xnvc on :" + xvncStart.getCurrentDisplay() + ", cycling ...");
        
         try
         {
View Full Code Here

Examples of org.flexunit.ant.launcher.commands.headless.XvncStopCommand.execute()

      }
     
      // Now stop the vncserver that the player has been destroyed
      XvncStopCommand xvncStop = new XvncStopCommand(finalDisplay);
      xvncStop.setProject(project);
      xvncStop.execute();
   }
}
View Full Code Here

Examples of org.flywaydb.core.internal.dbsupport.SqlScript.execute()

            // This is how Flyway determines the database *type* (e.g. Postgres vs Oracle)
            DbSupport dbSupport = DbSupportFactory.createDbSupport(connection, false);

            // Load our SQL string & execute via Flyway's SQL parser
            SqlScript script = new SqlScript(sqlToExecute, dbSupport);
            script.execute(dbSupport.getJdbcTemplate());
        }
        catch(FlywayException fe)
        {
            // If any FlywayException (Runtime) is thrown, change it to a SQLException
            throw new SQLException("Flyway executeSql() error occurred", fe);
View Full Code Here

Examples of org.freeplane.features.mode.ModeController.execute()

      public void undo() {
        node.removeExtension(NodeStyleModel.class);
      }
    };
    modeController.execute(actor, node.getMap());
    return NodeStyleModel.getModel(node);
  }

  private NodeSizeModel createOwnSizeModel(final NodeModel node) {
    {
View Full Code Here

Examples of org.freerealm.unit.Order.execute()

     */
    public CommandResult execute(Realm realm) {
        if (unit != null) {
            Order order = unit.getNextOrder();
            if (order != null) {
                order.execute(realm);
                if (order.isComplete()) {
                    unit.removeOrder(order);
                    if (unit.getNextOrder() != null) {
                        unit.getNextOrder().setTurnGiven(realm.getNumberOfTurns());
                    }
View Full Code Here

Examples of org.fto.jthink.jdbc.SQLExecutor.execute()

      SQL sql = sqlBuilder.constructSQLForInsert("Messages", messagesHM);
      if(logger.isDebugEnabled()){
        logger.debug("通过SQLBuilder构建的SQL: " + sql.getSQLString()+"     "+messagesHM);
      }
      /* 执行SQ语句 */
      sqlExecutor.execute(sql);
     
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
 
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.