|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.geoserver.rest.encoder.utils.XmlElement
it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
public abstract class GSResourceEncoder
Encode a GeoServer resource.
GSDimensionInfoEncoder,
GSFeatureDimensionInfoEncoder| Nested Class Summary | |
|---|---|
static class |
GSResourceEncoder.ProjectionPolicy
Reprojection policy for a published layer. |
| Field Summary | |
|---|---|
static String |
KEYWORDS
|
static String |
METADATA
|
static String |
METADATALINKS
|
static String |
NAME
|
static String |
NATIVENAME
|
| Constructor Summary | |
|---|---|
protected |
GSResourceEncoder(String rootName)
|
| Method Summary | |
|---|---|
protected void |
addAbstract(String _abstract)
Add the 'abstract' node with a text value from 'abstract' |
protected void |
addDescription(String description)
Add the 'description' node with a text value from 'description' |
void |
addKeyword(String keyword)
|
void |
addKeyword(String keyword,
String language,
String vocabulary)
<keywords>
<string>WCS</string>
<string>ImageMosaic</string>
<string>srtm30</string> <string> KEYWORD\@language={LANGUAGE}\;\@vocabulary={VOCABULARY}\;
|
protected void |
addLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
protected void |
addMetadata(String key,
XmlElement dimensionInfo)
|
protected void |
addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo)
|
protected void |
addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
Add the metadata for a custom dimension. |
void |
addMetadataLinkInfo(GSMetadataLinkInfoEncoder metadataLinkInfo)
Adds a MetadataLinkInfo to the GeoServer Resource |
void |
addMetadataLinkInfo(String type,
String metadataType,
String content)
Adds quickly a MetadataLinkInfo to the GeoServer Resource |
protected void |
addName(String name)
Add the 'name' node with a text value from 'name' |
protected void |
addNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
protected void |
addNativeCRS(String nativeCRS)
Add the 'nativeCRS' node with a text value from 'nativeCRS' |
protected void |
addNativeName(String nativename)
Add the 'nativename' node with a text value from 'name' |
protected void |
addProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
NONE, REPROJECT_TO_DECLARED, FORCE_DECLARED |
protected void |
addSRS(String srs)
Add the 'SRS' node with a text value from 'srs' |
protected void |
addTitle(String title)
Add the 'title' node with a text value from 'title' |
boolean |
delKeyword(String keyword)
delete a keyword from the list |
boolean |
delKeyword(String keyword,
String language,
String vocabulary)
delete a keyword from the list |
boolean |
delMetadata(String key)
|
boolean |
delMetadataLinkInfo(String metadataURL)
Deletes a metadataLinkInfo from the list using the metadataURL (MetadataLinkInfo content) |
String |
getName()
|
String |
getNativeName()
Get the nativeName |
void |
setAbstract(String _abstract)
Set or modify the 'abstract' node with a text value from 'abstract' |
void |
setDescription(String description)
Set or modify the 'description' node with a text value from 'description' |
void |
setEnabled(boolean enabled)
|
void |
setLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
void |
setMetadata(String key,
XmlElement dimensionInfo)
Deprecated. Use setMetadataDimension(String, GSDimensionInfoEncoder) this method will be set as protected for internal use only |
void |
setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo)
|
void |
setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
Set the metadata for a custom dimension. |
void |
setMetadataString(String key,
String value)
|
void |
setName(String name)
Set or modify the 'name' node with a text value from 'name' |
void |
setNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
void |
setNativeCRS(String nativeCRS)
Set or modify the 'nativeCRS' node with a text value from 'nativeCRS' |
void |
setNativeName(String nativename)
Set or modify the 'nativename' node with a text value from 'name' |
void |
setProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
NONE, REPROJECT_TO_DECLARED, FORCE_DECLARED |
void |
setSRS(String srs)
Set or modify the 'SRS' node with a text value from 'srs' |
void |
setTitle(String title)
Set or modify the 'title' node with a text value from 'title' |
| Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder |
|---|
add, get, get, set |
| Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement |
|---|
add, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String NATIVENAME
public static final String METADATA
public static final String KEYWORDS
public static final String METADATALINKS
| Constructor Detail |
|---|
protected GSResourceEncoder(String rootName)
rootName - Actually 'feature' or 'coverage'GSFeatureTypeEncoder,
GSCoverageEncoder| Method Detail |
|---|
public void setEnabled(boolean enabled)
protected void addMetadata(String key,
XmlElement dimensionInfo)
key - dimensionInfo -
public void setMetadata(String key,
XmlElement dimensionInfo)
setMetadataDimension(String, GSDimensionInfoEncoder) this method will be set as protected for internal use only
key - dimensionInfo -
protected void addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo)
key - dimensionInfo -
protected void addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
key - the name of the dimensiondimensionInfo - GSDimensionInfoEncoder with additional information about the dimensioncustom - is the dimension custom or not?
public void setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo)
public void setMetadataString(String key,
String value)
public void setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
key - the name of the dimensiondimensionInfo - GSDimensionInfoEncoder with additional information about the dimensioncustom - is the dimension custom or not?public boolean delMetadata(String key)
key - the name of the metadata to add (f.e.: elevation, time)
public void addKeyword(String keyword)
public void addKeyword(String keyword,
String language,
String vocabulary)
<keywords>
<string>WCS</string>
<string>ImageMosaic</string>
<string>srtm30</string> <string> KEYWORD\@language={LANGUAGE}\;\@vocabulary={VOCABULARY}\;
keyword - mandatory keyword ('\' characters are not permitted)language - optional parametervocabulary - optional parameterpublic boolean delKeyword(String keyword)
keyword -
public boolean delKeyword(String keyword,
String language,
String vocabulary)
keyword -
public void addMetadataLinkInfo(GSMetadataLinkInfoEncoder metadataLinkInfo)
MetadataLink -
public void addMetadataLinkInfo(String type,
String metadataType,
String content)
type - metadataType - content - public boolean delMetadataLinkInfo(String metadataURL)
metadataURL -
protected void addProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
public void setProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
protected void addName(String name)
public void setName(String name)
public String getName()
protected void addNativeName(String nativename)
public void setNativeName(String nativename)
public String getNativeName()
protected void addDescription(String description)
public void setDescription(String description)
protected void addAbstract(String _abstract)
public void setAbstract(String _abstract)
protected void addTitle(String title)
public void setTitle(String title)
protected void addSRS(String srs)
public void setSRS(String srs)
protected void addNativeCRS(String nativeCRS)
public void setNativeCRS(String nativeCRS)
protected void addLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
minx - maxy - maxx - miny - crs -
public void setLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
protected void addNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
minx - maxy - maxx - miny - crs -
public void setNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||