Package com.esri.gpt.control.webharvest.protocol

Examples of com.esri.gpt.control.webharvest.protocol.Protocol


      // Assembling records for each id
      record = new HrRecord();
      record.setHostUrl(rs.getString(2));

      String protocolDef = rs.getString(3);
      Protocol protocol = getRequestContext().getApplicationConfiguration()
          .getProtocolFactories().parseProtocol(protocolDef);
      try {
        record.setProtocol(protocol);
      } catch (IllegalArgumentException ex) {
        record.setProtocol(new HarvestProtocolNone());
      }
      record.setName(rs.getString(4));
      record.setUuid(rs.getString(5));
      LOG
          .info("Name = " + record.getName() + "protocol "
              + protocol.toString());
     
      // Attempting to marshall db with ids that have been given
      String id = Val.chkStr(rs.getString("ID"));
      String idValue = Val.chkStr(idFields.get(id));
      String docuuid = Val.chkStr(rs.getString("DOCUUID"));
View Full Code Here


    ExecutionUnitHelper helper = new ExecutionUnitHelper(getExecutionUnit());
    // get report builder
    final ReportBuilder rp = helper.getReportBuilder();

    try {
      Protocol protocol = getExecutionUnit().getRepository().getProtocol();
      if (protocol instanceof HarvestProtocolAgs2Agp) {
        HarvestProtocolAgs2Agp ags2agp = (HarvestProtocolAgs2Agp)protocol;
        ArcGISInfo source = ags2agp.getSource();
        AgpDestination destination = ags2agp.getDestination();
       
View Full Code Here

    ExecutionUnitHelper helper = new ExecutionUnitHelper(getExecutionUnit());
    // get report builder
    final ReportBuilder rp = helper.getReportBuilder();

    try {
      Protocol protocol = getExecutionUnit().getRepository().getProtocol();
      if (protocol instanceof HarvestProtocolAgp2Agp) {
        HarvestProtocolAgp2Agp agp2agp = (HarvestProtocolAgp2Agp)protocol;
        AgpSource source = agp2agp.getSource();
        AgpDestination destination = agp2agp.getDestination();
        AgpPush agpPush = new AgpPush(source, destination) {
View Full Code Here

      }
  });
  if (this.queryBuilder == null) {
    throw new IllegalArgumentException("No query builder can be created.");
  }
  Protocol protocol = task.getResource().getProtocol();
  if (protocol!=null) {
    String r = Val.chkStr(protocol.getAttributeMap().getValue("restrictions"));
    String [] ar = r.split(",");
    restrictions.addAll(Arrays.asList(ar));
  }
}
View Full Code Here

      if (record == null) {

        record = repos.readHarvestRecord(uuid, this.getRequestContext());

      }
      Protocol harvestProtocol = record.getProtocol();
      if (harvestProtocol instanceof HarvestProtocolCsw) {
        HarvestProtocolCsw harvestProtocolCsw = (HarvestProtocolCsw) harvestProtocol;
        if (!this.getProfileId().equals(harvestProtocolCsw.getProfile())
            || !this.getGetCapabiltiesUrl().equals(record.getHostUrl())) {
          doCapabilities = true;
View Full Code Here

*/
@Deprecated
public void checkConnection()
    throws HRInvalidProtocolException, HRConnectionException {
  try {
    Protocol protocol = getProtocol();
    String hostUrl = getHostUrl();
    ProtocolInvoker.ping(protocol, hostUrl);
  } catch (Exception ex) {
    if (ex instanceof HRInvalidProtocolException) {
      throw (HRInvalidProtocolException) ex;
View Full Code Here

TOP

Related Classes of com.esri.gpt.control.webharvest.protocol.Protocol

Copyright © 2018 www.massapicom. 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.