|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.enterprise.WMSServlet.WMS
Field Summary | |
private java.awt.Color |
bgColor
|
private java.lang.String |
exceptionFormat
|
private java.lang.String |
format
|
private int |
height
|
private OGCWebServiceRequest |
request
|
private HttpServletResponse |
resp
|
private boolean |
transparent
|
private int |
width
|
Constructor Summary | |
private |
WMSServlet.WMS(HttpServletRequest srequest,
HttpServletResponse resp)
Constructor of the inner class WMS. |
Method Summary | |
private java.lang.String |
getPostContent(HttpServletRequest request)
returns the content of the http post request without its header |
private void |
handleDescribeLayerResponse(WMSDescribeLayerResponse response)
handles the response to a describe layer request |
private void |
handleFeatureInfoResponse(WMSGetFeatureInfoResponse response)
handles the response to a get featureinfo request |
private void |
handleGetCapabilitiesResponse(WMSGetCapabilitiesResponse response)
handles the response to a get capabilities request |
private void |
handleGetLegendGraphicResponse(WMSGetLegendGraphicResponse response)
handles the response to a get legend graphic request |
private void |
handleGetMapResponse(WMSGetMapResponse response)
handles the response to a get map request |
private void |
handleGetScaleBarResponse(WMSGetScaleBarResponse response)
handles the response to a get scalebar request |
private void |
handleGetStylesResponse(WMSGetStylesResponse response)
handles the response to a get styles request |
private void |
handlePutStylesResponse(WMSPutStylesResponse response)
handles the response to a put styles request |
private void |
performRequest(OGCWebServiceRequest request)
performs the passed OGCWebServiceRequest by accessing service from the pool and passing the request to it |
void |
write(java.lang.Object result)
The method implements the OGCWebServiceClient interface. |
void |
writeException(java.lang.String location,
java.lang.String message)
writes an excetion into the OutputStream back to the client. |
private void |
writeImage(java.lang.Object output,
java.lang.String mime)
writes the passed image to the response output stream. |
void |
writeServiceExceptionReport(java.lang.String code,
java.lang.String report)
writes an service exception report into the OutputStream back to the client. the method considers the format an exception shall be returned to the client as defined in the request. |
private java.lang.String |
xsltTransformGetFeature(java.lang.String capa,
java.net.URL xslt)
transforms the configuration/capabilities using to a OGC WMS conform capabilities document using a predefined xslt-stylesheet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.awt.Color bgColor
private HttpServletResponse resp
private OGCWebServiceRequest request
private java.lang.String exceptionFormat
private java.lang.String format
private boolean transparent
private int height
private int width
Constructor Detail |
private WMSServlet.WMS(HttpServletRequest srequest, HttpServletResponse resp)
If the request can't be performed an exception will be written to the output stream to the client. The exception format is taken from the request (default: application/vnd.ogc.se_xml). This constructor will be called if the request is received by the servlet with HTTP POST
Method Detail |
private void performRequest(OGCWebServiceRequest request)
private java.lang.String getPostContent(HttpServletRequest request) throws java.lang.IllegalArgumentException, java.io.IOException
java.lang.IllegalArgumentException
java.io.IOException
public void write(java.lang.Object result)
OGCWebServiceClient
It is hardly suggested that the submitted object shall be an instance of OGCWebServiceEvent. But it don't have to be.
write
in interface OGCWebServiceClient
result
- private void handleGetCapabilitiesResponse(WMSGetCapabilitiesResponse response) throws java.lang.Exception
response
-
java.lang.Exception
private void handleGetMapResponse(WMSGetMapResponse response) throws InvalidFormatException
response
-
InvalidFormatException
private void handleFeatureInfoResponse(WMSGetFeatureInfoResponse response) throws java.lang.Exception
response
-
java.lang.Exception
private void handleGetStylesResponse(WMSGetStylesResponse response)
response
- private void handlePutStylesResponse(WMSPutStylesResponse response)
response
- private void handleDescribeLayerResponse(WMSDescribeLayerResponse response)
response
- private void handleGetLegendGraphicResponse(WMSGetLegendGraphicResponse response) throws java.lang.Exception
response
-
java.lang.Exception
private void handleGetScaleBarResponse(WMSGetScaleBarResponse response) throws java.lang.Exception
response
-
java.lang.Exception
public void writeException(java.lang.String location, java.lang.String message)
location
- location where the exception occursmessage
- message describing the exceptionpublic void writeServiceExceptionReport(java.lang.String code, java.lang.String report)
code
- code of te expetion as defined in the OGC WMS 1.1.1 spec and
the WMS 1.1.1 test suitereport
- detailed description of the exptionprivate void writeImage(java.lang.Object output, java.lang.String mime)
output
- mime
- private java.lang.String xsltTransformGetFeature(java.lang.String capa, java.net.URL xslt)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |