| java.lang.Object net.refractions.udig.tool.info.LayerPointInfo
LayerPointInfo | abstract public class LayerPointInfo (Code) | | The response to a getInfo request of a service w.r.t. a layer.
This LayerPointInfo object allows the wrapping arbitrary content, providing type information as a MIME
type, and the possability of lazy access.
This class is expected to be subclassed inorder to perform lazy parsing via a custom
implementation of getValue();
|
Method Summary | |
public Object | acquireValue() Subclass must implement to acquire value in a lazy manner. | public ILayer | getLayer() Layer responsible for providing this information. | abstract public String | getMimeType() The data's MIME type.
Well known MIME types:
- "application/vnd.ogc.gml" - represents a FeatureCollection
- "text/html" - represents a web page
- "text/plain"
- "" - indicates LayerPointInfo.EMPTY
The system may be extended at a later time to allow the use of additional MIME types. | public URL | getRequestURL() Request url, if applicable, will be sent to an embded browser or something similar.
For *real objects* please just return the default value, aka null. | public String | toString() |
ERROR | final public static String ERROR(Code) | | Server Error - value is Exception or String
|
GML | final public static String GML(Code) | | The mime type for gml - aka Feature
|
HTML | final public static String HTML(Code) | | The mime type for text/html
|
NOT_FOUND | final public static LayerPointInfo NOT_FOUND(Code) | | Used to indicate an NOT_FOUND result.
Not found is different from "unavailable".
|
TEXT | final public static String TEXT(Code) | | The mime type for text/plain
|
XML | final public static String XML(Code) | | The mime type for text/xml
|
layer | ILayer layer(Code) | | Layer responsible for providing this information.
|
LayerPointInfo | public LayerPointInfo(ILayer layer)(Code) | | Construct an LayerPointInfo for the provided Layer
|
acquireValue | public Object acquireValue() throws IOException(Code) | | Subclass must implement to acquire value in a lazy manner.
The default implementation will make the request specified by getRequestURL().getContent();
Object to be used as the Value of this LayerPointInfo throws: IOException - if an IO error occurs during the request process |
getLayer | public ILayer getLayer()(Code) | | Layer responsible for providing this information.
Can be used as a back point to focus the map on the indicated hit.
Returns the layer. |
getMimeType | abstract public String getMimeType()(Code) | | The data's MIME type.
Well known MIME types:
- "application/vnd.ogc.gml" - represents a FeatureCollection
- "text/html" - represents a web page
- "text/plain"
- "" - indicates LayerPointInfo.EMPTY
The system may be extended at a later time to allow the use of additional MIME types. The
goal should be to allow the complete set used in WMS getFeatureInfo opperations.
See Also: http://www.w3.org/Protocols/HTTP/1.1/spec.html#MIME |
getRequestURL | public URL getRequestURL()(Code) | | Request url, if applicable, will be sent to an embded browser or something similar.
For *real objects* please just return the default value, aka null. acquireValue will be
called.
requested URL or null if working with a real objects. |
toString | public String toString()(Code) | | LayerPointInfo mimeType : request |
|
|