Adding the publishStyle(..., boolean raw) method to the GeoServerRESTPublishe class for compatibility reasons
This commit is contained in:
parent
fd84472576
commit
86a3de1e2d
@ -356,6 +356,19 @@ public class GeoServerRESTPublisher {
|
||||
return styleManager.publishStyle(sldFile, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store and publish a Style, assigning it a name and choosing the raw format.
|
||||
*
|
||||
* @param sldFile the File containing the SLD document.
|
||||
* @param name the Style name.
|
||||
* @param raw the raw format
|
||||
*
|
||||
* @return <TT>true</TT> if the operation completed successfully.
|
||||
*/
|
||||
public boolean publishStyle(File sldFile, String name, boolean raw) {
|
||||
return styleManager.publishStyle(sldFile, name, raw);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a Style.
|
||||
*
|
||||
|
||||
@ -260,6 +260,15 @@ public class GeoServerRESTStyleManager extends GeoServerRESTAbstractManager {
|
||||
return result != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store and publish a Style, assigning it a name and choosing the raw format.
|
||||
*
|
||||
* @param sldFile the File containing the SLD document.
|
||||
* @param name the Style name.
|
||||
* @param raw the raw format
|
||||
*
|
||||
* @return <TT>true</TT> if the operation completed successfully.
|
||||
*/
|
||||
public boolean publishStyle(final File sldFile, final String name, final boolean raw) {
|
||||
/*
|
||||
* This is the equivalent call with cUrl:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user