Skip to content

Commit

Permalink
Moving inner classes back to IndexTankClient to ensure backwards comp…
Browse files Browse the repository at this point in the history
…atibility
  • Loading branch information
Adrian committed Apr 16, 2011
1 parent 87a295c commit 6365bdc
Show file tree
Hide file tree
Showing 9 changed files with 497 additions and 493 deletions.
478 changes: 0 additions & 478 deletions src/main/java/com/flaptor/indextank/apiclient/ApiClient.java

Large diffs are not rendered by default.

@@ -1,9 +1,11 @@
package com.flaptor.indextank.apiclient;

import com.flaptor.indextank.apiclient.IndexTankClient.HttpCodeException;


public class AuthenticationFailedException extends Exception {
public AuthenticationFailedException(
ApiClient.HttpCodeException source) {
HttpCodeException source) {
super(source.getMessage());
}
}
12 changes: 6 additions & 6 deletions src/main/java/com/flaptor/indextank/apiclient/Index.java
Expand Up @@ -7,10 +7,10 @@

public interface Index {

ApiClient.SearchResults search(String query) throws IOException,
IndexTankClient.SearchResults search(String query) throws IOException,
InvalidSyntaxException;

ApiClient.SearchResults search(ApiClient.Query query) throws IOException,
IndexTankClient.SearchResults search(IndexTankClient.Query query) throws IOException,
InvalidSyntaxException;

/**
Expand All @@ -30,8 +30,8 @@ void create() throws IOException, IndexAlreadyExistsException,
* Indexes a batch of documents
*
* @param documents
* an iterable of {@link ApiClient.Document}s
* @return a {@link ApiClient.BatchResults} with the results
* an iterable of {@link IndexTankClient.Document}s
* @return a {@link IndexTankClient.BatchResults} with the results
* information
* @throws IOException
* @throws IndexDoesNotExistException
Expand All @@ -42,8 +42,8 @@ void create() throws IOException, IndexAlreadyExistsException,
* error and it SHOULD BE HANDLED if a retry policy is
* implemented.
*/
ApiClient.BatchResults addDocuments(
Iterable<ApiClient.Document> documents) throws IOException,
IndexTankClient.BatchResults addDocuments(
Iterable<IndexTankClient.Document> documents) throws IOException,
IndexDoesNotExistException;

void addDocument(String documentId, Map<String, String> fields)
Expand Down
@@ -1,8 +1,10 @@
package com.flaptor.indextank.apiclient;

import com.flaptor.indextank.apiclient.IndexTankClient.HttpCodeException;


public class IndexAlreadyExistsException extends Exception {
public IndexAlreadyExistsException(ApiClient.HttpCodeException source) {
public IndexAlreadyExistsException(HttpCodeException source) {
super(source.getMessage());
}
}
@@ -1,8 +1,10 @@
package com.flaptor.indextank.apiclient;

import com.flaptor.indextank.apiclient.IndexTankClient.HttpCodeException;


public class IndexDoesNotExistException extends Exception {
public IndexDoesNotExistException(ApiClient.HttpCodeException source) {
public IndexDoesNotExistException(HttpCodeException source) {
super(source.getMessage());
}
}

0 comments on commit 6365bdc

Please sign in to comment.