Package org.jboss.elasticsearch.river.remote.exception

Examples of org.jboss.elasticsearch.river.remote.exception.RemoteDocumentNotFoundException


        return null;
      byte[] responseData = performHttpGetCall(url, headers).content;
      return parseJSONResponse(responseData);
    } catch (HttpCallException e) {
      if (e.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
        throw new RemoteDocumentNotFoundException(e);
      } else {
        throw e;
      }
    }
  }
View Full Code Here


            return ret;
          }
        } catch (ClassCastException e) {
          throw new SettingsException("'remote/" + CFG_HTML_MAPPING + "' configuration section is invalid");
        } catch (Exception e) {
          throw new RemoteDocumentNotFoundException("HTML document can't be processed: " + e.getMessage(), e);
        }
      } else {
        throw new RemoteDocumentNotFoundException("HTML document can't be processed as it is not html but: "
            + response.contentType);
      }
    } catch (ClientProtocolException e) {
      if (e.getCause() != null)
        throw new RemoteDocumentNotFoundException(e.getCause());
      else
        throw new RemoteDocumentNotFoundException(e);
    } catch (HttpCallException e) {
      if (e.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
        throw new RemoteDocumentNotFoundException(e);
      } else {
        throw e;
      }
    } catch (URISyntaxException e) {
      throw new RemoteDocumentNotFoundException("URL of sitemap is invalid: " + e.getMessage(), e);
    }
  }
View Full Code Here

            return ret;
          }
        } catch (ClassCastException e) {
          throw new SettingsException("'remote/" + CFG_HTML_MAPPING + "' configuration section is invalid");
        } catch (Exception e) {
          throw new RemoteDocumentNotFoundException("HTML document can't be processed: " + e.getMessage(), e);
        }
      } else {
        throw new RemoteDocumentNotFoundException("HTML document can't be processed as it is not html but: "
            + response.contentType);
      }
    } catch (HttpCallException e) {
      if (e.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
        throw new RemoteDocumentNotFoundException(e);
      } else {
        throw e;
      }
    } catch (URISyntaxException e) {
      throw new RemoteDocumentNotFoundException("URL of sitemap is invalid: " + e.getMessage(), e);
    }
  }
View Full Code Here

        return null;
      byte[] responseData = performGetRESTCall(url);
      return parseJSONResponse(responseData);
    } catch (RestCallHttpException e) {
      if (e.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
        throw new RemoteDocumentNotFoundException(e);
      } else {
        throw e;
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.elasticsearch.river.remote.exception.RemoteDocumentNotFoundException

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.