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
Showing
19 changed files
with
462 additions
and
103 deletions.
There are no files selected for viewing
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
61 changes: 61 additions & 0 deletions
61
...nity/oseo/oseo-core/src/main/java/org/geoserver/opensearch/eo/AbstractProductRequest.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,61 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.opensearch.eo; | |||
|
|||
import org.apache.commons.lang.builder.ToStringBuilder; | |||
import org.apache.commons.lang.builder.ToStringStyle; | |||
|
|||
/** | |||
* A generic request by collection and product id | |||
* | |||
* @author Andrea Aime - GeoSolutions | |||
*/ | |||
public class AbstractProductRequest { | |||
|
|||
String parentId; | |||
|
|||
String id; | |||
|
|||
String httpAccept; | |||
|
|||
transient String baseUrl; | |||
|
|||
public String getBaseUrl() { | |||
return baseUrl; | |||
} | |||
|
|||
public void setBaseUrl(String baseUrl) { | |||
this.baseUrl = baseUrl; | |||
} | |||
|
|||
public String getParentId() { | |||
return parentId; | |||
} | |||
|
|||
public void setParentId(String parentId) { | |||
this.parentId = parentId; | |||
} | |||
|
|||
public String getHttpAccept() { | |||
return httpAccept; | |||
} | |||
|
|||
public void setHttpAccept(String httpAccept) { | |||
this.httpAccept = httpAccept; | |||
} | |||
|
|||
public String getId() { | |||
return id; | |||
} | |||
|
|||
public void setId(String id) { | |||
this.id = id; | |||
} | |||
|
|||
@Override | |||
public String toString() { | |||
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); | |||
} | |||
} |
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
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
15 changes: 15 additions & 0 deletions
15
src/community/oseo/oseo-core/src/main/java/org/geoserver/opensearch/eo/QuicklookRequest.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.opensearch.eo; | |||
|
|||
/** | |||
* A request to retrieve the quicklook of a particular product | |||
* | |||
* @author Andrea Aime - GeoSolutions | |||
*/ | |||
public class QuicklookRequest extends AbstractProductRequest { | |||
|
|||
|
|||
} |
47 changes: 47 additions & 0 deletions
47
src/community/oseo/oseo-core/src/main/java/org/geoserver/opensearch/eo/QuicklookResults.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,47 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.opensearch.eo; | |||
|
|||
import org.apache.commons.lang.builder.ToStringBuilder; | |||
import org.apache.commons.lang.builder.ToStringStyle; | |||
|
|||
/** | |||
* Represents the result of a quicklook search | |||
* | |||
* @author Andrea Aime - GeoSolutions | |||
*/ | |||
public class QuicklookResults { | |||
|
|||
QuicklookRequest request; | |||
|
|||
byte[] payload; | |||
|
|||
String mimeType; | |||
|
|||
public QuicklookResults(QuicklookRequest request, byte[] payload, String mimeType) { | |||
super(); | |||
this.request = request; | |||
this.payload = payload; | |||
this.mimeType = mimeType; | |||
} | |||
|
|||
public QuicklookRequest getRequest() { | |||
return request; | |||
} | |||
|
|||
public byte[] getPayload() { | |||
return payload; | |||
} | |||
|
|||
public String getMimeType() { | |||
return mimeType; | |||
} | |||
|
|||
@Override | |||
public String toString() { | |||
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); | |||
} | |||
|
|||
} |
Oops, something went wrong.