org.deegree_impl.enterprise
Class WTSServlet.WTS

java.lang.Object
  extended byorg.deegree_impl.enterprise.WTSServlet.WTS
All Implemented Interfaces:
OGCWebServiceClient
Enclosing class:
WTSServlet

private class WTSServlet.WTS
extends java.lang.Object
implements OGCWebServiceClient

Version:
$Revision: 1.14 $
Author:
Andreas Poth

Field Summary
private  boolean finished
           
private  OGCWebServiceRequest request
           
private  HttpServletResponse resp
           
private  OGCWebService service
           
 
Constructor Summary
private WTSServlet.WTS(java.util.HashMap paramMap, HttpServletResponse resp)
          FIXME: Exception type when pool is empty!
 
Method Summary
private  boolean waitForFinish(int mins)
          Stops the processing for the given number of minutes.
 void write(java.lang.Object result)
          The method implements the OGCWebServiceClient interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resp

private HttpServletResponse resp

request

private OGCWebServiceRequest request

service

private OGCWebService service

finished

private boolean finished
Constructor Detail

WTSServlet.WTS

private WTSServlet.WTS(java.util.HashMap paramMap,
                       HttpServletResponse resp)
                throws InconsistentRequestException,
                       WebServiceException
FIXME: Exception type when pool is empty!

Method Detail

waitForFinish

private boolean waitForFinish(int mins)
Stops the processing for the given number of minutes. The processing will be continued if another Thread sets the finished parameter first. FIXME: Better use signals instead of polling.

Parameters:
mins - the number of minutes to suspend execution
Returns:
true, if the finished parameter has been set "in time", else false

write

public void write(java.lang.Object result)
Description copied from interface: OGCWebServiceClient
The method implements the OGCWebServiceClient interface. So a deegree OWS implementation accessed by this class is able to return the result of a request by calling the write-method.

It is hardly suggested that the submitted object shall be an instance of OGCWebServiceEvent. But it don't have to be.

Specified by:
write in interface OGCWebServiceClient
Parameters:
result -