|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object utils.GeoserverRequestUtils
public class GeoserverRequestUtils
utils for creating requests to geoserver
Constructor Summary | |
---|---|
GeoserverRequestUtils()
|
Method Summary | |
---|---|
static play.libs.WS.WSRequestHolder |
buildAttributesUrl(java.lang.String url,
java.lang.String layer,
java.lang.String user,
java.lang.String password)
build WS object for getting layer attributes |
static play.libs.WS.WSRequestHolder |
buildFeatureInfoBBoxUrl(java.lang.String url,
java.lang.String layer,
BBox bBox,
java.lang.String srs,
java.lang.String user,
java.lang.String password)
build WS object for getting features in bbox |
static play.libs.WS.WSRequestHolder |
buildFeatureInfoUrl(java.lang.String url,
java.lang.String layers,
java.lang.String styles,
BBox bBox,
Coordinate point,
Coordinate size,
java.lang.String srs,
java.lang.Boolean addBuffer,
java.lang.String user,
java.lang.String password)
build WS object for getting features in point |
static play.libs.WS.WSRequestHolder |
buildLegendUrl(WMSRequest wmsRequest,
Layer layer)
build WS object for getting layer`s legend |
static play.libs.WS.WSRequestHolder |
buildRestLayerUrl(Layer layer)
build WS object for getting layer information using geoserver rest API |
static java.lang.String |
buildStyleUrl(Layer layer,
java.lang.String styleName)
build string for request sld style |
static play.libs.WS.WSRequestHolder |
buildWFSUrl(WFSRequest wfsRequest,
Layer layer)
build WS object for wfs request |
static play.libs.WS.WSRequestHolder |
buildWMSUrl(WMSRequest wmsRequest,
Layer layer,
java.lang.String style)
build WS object for wms request |
static play.libs.F.Promise<org.w3c.dom.Document> |
getLayerFeature(Layer layer,
java.lang.String featureHref)
build WS object for getting layer feature using geoserver rest API |
static play.libs.F.Promise<java.lang.String> |
getLayerFeatureHref(Layer layer)
build WS object for getting layer feature href using geoserver rest API |
static play.libs.F.Promise<org.w3c.dom.Document> |
getStoreData(Layer layer,
java.lang.String storeHref)
build WS object for getting store data using geoserver rest API |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoserverRequestUtils()
Method Detail |
---|
public static play.libs.WS.WSRequestHolder buildWFSUrl(WFSRequest wfsRequest, Layer layer)
wfsRequest
- WFSRequest formlayer
- Layer object for construct request
WFSRequest
,
Layer
,
WS.WSRequestHolder
public static play.libs.WS.WSRequestHolder buildWMSUrl(WMSRequest wmsRequest, Layer layer, java.lang.String style)
wmsRequest
- WMSRequest formlayer
- Layer object for construct requeststyle
- Style object for construct request
WMSRequest
,
Layer
,
String
,
WS.WSRequestHolder
public static java.lang.String buildStyleUrl(Layer layer, java.lang.String styleName)
layer
- Layer objectstyleName
- style name
Layer
public static play.libs.WS.WSRequestHolder buildLegendUrl(WMSRequest wmsRequest, Layer layer)
wmsRequest
- WMSRequest formlayer
- Layer object
WMSRequest
,
Layer
,
WS.WSRequestHolder
public static play.libs.WS.WSRequestHolder buildFeatureInfoUrl(java.lang.String url, java.lang.String layers, java.lang.String styles, BBox bBox, Coordinate point, Coordinate size, java.lang.String srs, java.lang.Boolean addBuffer, java.lang.String user, java.lang.String password)
url
- base server urllayers
- names of requested layers separated by commastyles
- names of styles separated by commabBox
- boundary box of mappoint
- point for requestsize
- window sizesrs
- projection for request, for example EPSG:4326addBuffer
- it is true if request contains buffer parameteruser
- user for authorizationpassword
- password for authorization
BBox
,
Coordinate
,
WS.WSRequestHolder
public static play.libs.WS.WSRequestHolder buildFeatureInfoBBoxUrl(java.lang.String url, java.lang.String layer, BBox bBox, java.lang.String srs, java.lang.String user, java.lang.String password)
url
- base server urllayer
- name of requested layerbBox
- boundary box for requestsrs
- projection for request, for example EPSG:4326user
- user for authorizationpassword
- password for authorization
BBox
,
WS.WSRequestHolder
public static play.libs.WS.WSRequestHolder buildAttributesUrl(java.lang.String url, java.lang.String layer, java.lang.String user, java.lang.String password)
url
- base server urllayer
- name of requested layeruser
- user for authorizationpassword
- password for authorization
public static play.libs.WS.WSRequestHolder buildRestLayerUrl(Layer layer)
layer
- Layer object
Layer
,
WS.WSRequestHolder
public static play.libs.F.Promise<java.lang.String> getLayerFeatureHref(Layer layer) throws java.lang.Exception
layer
- Layer object
java.lang.Exception
- if resource href is undefinedF.Promise
,
Layer
public static play.libs.F.Promise<org.w3c.dom.Document> getLayerFeature(Layer layer, java.lang.String featureHref) throws java.lang.Exception
layer
- Layer objectfeatureHref
- feature href
java.lang.Exception
- if information about layers`s server is nullF.Promise
,
Document
,
Layer
public static play.libs.F.Promise<org.w3c.dom.Document> getStoreData(Layer layer, java.lang.String storeHref) throws java.lang.Exception
layer
- Layer objectstoreHref
- store href
java.lang.Exception
- if information about layers`s server is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |