@LcdService(service=ILcdWMSGetLegendGraphicRequestEncoder.class, priority=20000) public class TLcdDefaultWMSGetLegendGraphicEncoder extends Object implements ILcdWMSGetLegendGraphicRequestEncoder
Constructor and Description |
---|
TLcdDefaultWMSGetLegendGraphicEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
encode(TLcdWMSGetLegendGraphicRequestContext aWMSGetLegendGraphicRequestContext,
TLcdWMSRequestContext aWMSRequestContext,
OutputStream aOutputStream)
Encodes the legend graphic for a given layer and sends it to the given
OutputStream . |
String |
getContentType()
Returns the content MIME type of the encoder.
|
public TLcdDefaultWMSGetLegendGraphicEncoder()
public String getContentType()
ILcdWMSGetLegendGraphicRequestEncoder
getContentType
in interface ILcdWMSGetLegendGraphicRequestEncoder
String
.public boolean encode(TLcdWMSGetLegendGraphicRequestContext aWMSGetLegendGraphicRequestContext, TLcdWMSRequestContext aWMSRequestContext, OutputStream aOutputStream) throws IOException
ILcdWMSGetLegendGraphicRequestEncoder
OutputStream
.encode
in interface ILcdWMSGetLegendGraphicRequestEncoder
aWMSGetLegendGraphicRequestContext
- a container for all relevant information that might be useful when generating legendsaWMSRequestContext
- a container for the original request and other related request parameters.aOutputStream
- the OutputStream
to write the output to. The type of data is given by ILcdWMSGetLegendGraphicRequestEncoder.getContentType()
.IOException
- for any I/O Exceptions.