Class EndpointDescriptionReader
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionReader
- All Implemented Interfaces:
IEndpointDescriptionReader
Default implementation of
IEndpointDescriptionReader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRead endpoint descriptions from the given input stream.readEndpointDescriptions(InputStream ins, Map<String, Object> overrideProperties) Read endpoint descriptions from the given input stream.
-
Constructor Details
-
EndpointDescriptionReader
public EndpointDescriptionReader()
-
-
Method Details
-
readEndpointDescriptions
Description copied from interface:IEndpointDescriptionReaderRead endpoint descriptions from the given input stream. The ins parameter must not benull, and must provide data in the Endpoint Description Extender Format (EDEF) specified in section 122.8 of the OSGi Enterprise Specification.- Specified by:
readEndpointDescriptionsin interfaceIEndpointDescriptionReader- Parameters:
input- the input stream to read from. Must be non-null, and must provide data in the format specified the EDEF specification (see link above).- Returns:
- array of
EndpointDescriptioninstance read from the given input stream. - Throws:
IOException- if the inputstream does not have valid data in the EDE format. Note that the implementation of this method may callInputStream.close().
-
readEndpointDescriptions
public EndpointDescription[] readEndpointDescriptions(InputStream ins, Map<String, Object> overrideProperties) throws IOExceptionDescription copied from interface:IEndpointDescriptionReaderRead endpoint descriptions from the given input stream. The ins parameter must not benull, and must provide data in the Endpoint Description Extender Format (EDEF) specified in section 122.8 of the OSGi Enterprise Specification.- Specified by:
readEndpointDescriptionsin interfaceIEndpointDescriptionReader- Parameters:
ins- the input stream to read from. Must be non-null, and must provide data in the format specified the EDEF specification (see link above).overrideProperties- map of property name/values that will override the same-named values from the edef. Ifnullthen no overriding will be done.- Returns:
- array of
EndpointDescriptioninstance read from the given input stream. - Throws:
IOException- if the inputstream does not have valid data in the EDE format. Note that the implementation of this method may callInputStream.close().- Since:
- 4.7
-
mergeWithParsed
protected Map<String,Object> mergeWithParsed(Map<String, Object> parsedProperties, Map<String, Object> mergeProperties) - Since:
- 4.7
-