Package com.luciad.io.transport
Interface ILcdTransport
- All Superinterfaces:
AutoCloseable
,ILcdDisposable
A transport service based on a request-response protocol.
It can be used as an abstract layer for, for example, HTTP implementations.
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
dispose()
Disposes of this object and allows it to release any system resources that it is holding.performRequest
(TLcdTransportRequest aRequest) Performs the specified request.Methods inherited from interface com.luciad.util.ILcdDisposable
close
-
Method Details
-
performRequest
Performs the specified request. Note that the response's code needs to be checked to see whether the request is successful. The content of the response should always be closed when the response has been handled, even if the content is not used or does not contain anything.- Parameters:
aRequest
- the request- Returns:
- the response
- Throws:
IOException
- if the request failed
-
dispose
default void dispose()Disposes of this object and allows it to release any system resources that it is holding.
The result of calling any other method (other than
finalize
) on this object subsequent to a call to this method is undefined.The default implementation of this method does nothing. Make sure to override this method if needed.
- Specified by:
dispose
in interfaceILcdDisposable
- Since:
- 2017.1
-