Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42c7e3f
commit 2e19301
Showing
8 changed files
with
131 additions
and
52 deletions.
There are no files selected for viewing
30 changes: 0 additions & 30 deletions
30
...ter/rest-ng/src/main/java/org/geoserver/importer/rest/ImportContextCollectionWrapper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...tension/importer/rest-ng/src/main/java/org/geoserver/importer/rest/ImportJSONWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.geoserver.importer.rest; | ||
|
||
import net.sf.json.JSONObject; | ||
import org.geoserver.importer.rest.converters.ImportContextJSONConverterWriter; | ||
|
||
import java.io.IOException; | ||
import java.io.Writer; | ||
|
||
public class ImportJSONWrapper implements ImportWrapper { | ||
JSONObject json; | ||
|
||
public ImportJSONWrapper(JSONObject json) { | ||
this.json = json; | ||
} | ||
|
||
@Override | ||
public void write(Writer writer, ImportContextJSONConverterWriter converter) throws IOException { | ||
writer.write(json.toString()); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ension/importer/rest-ng/src/main/java/org/geoserver/importer/rest/ImportStoreWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.geoserver.importer.rest; | ||
|
||
import org.geoserver.catalog.StoreInfo; | ||
import org.geoserver.importer.ImportTask; | ||
|
||
/** | ||
* Created by tbarsballe on 2017-03-31. | ||
*/ | ||
public class ImportStoreWrapper { | ||
StoreInfo store ; | ||
|
||
ImportTask task; | ||
|
||
public ImportStoreWrapper(StoreInfo store, ImportTask task) { | ||
this.store = store; | ||
this.task = task; | ||
} | ||
|
||
public StoreInfo getStore() { | ||
return store; | ||
} | ||
|
||
public ImportTask getTask() { | ||
return task; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/extension/importer/rest-ng/src/main/java/org/geoserver/importer/rest/ImportWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.geoserver.importer.rest; | ||
|
||
import org.geoserver.importer.rest.converters.ImportContextJSONConverterWriter; | ||
|
||
import java.io.IOException; | ||
import java.io.Writer; | ||
|
||
/** | ||
* Created by tbarsballe on 2017-03-31. | ||
*/ | ||
public interface ImportWrapper { | ||
void write(Writer writer, ImportContextJSONConverterWriter converter) throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters