Class HostingServiceProxyImpl
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.service.HostingServiceProxy,org.somda.sdc.dpws.soap.RequestResponseClient,org.somda.sdc.dpws.soap.interception.InterceptorHandler
public class HostingServiceProxyImpl implements HostingServiceProxy
Default implementation of HostingServiceProxy.
-
-
Field Summary
Fields Modifier and Type Field Description public final RequestResponseClientrequestResponseClientpublic final StringactiveXAddrpublic final StringendpointReferenceAddresspublic final List<QName>typespublic final Map<String, HostedServiceProxy>hostedServices
-
Method Summary
Modifier and Type Method Description RequestResponseClientgetRequestResponseClient()StringgetActiveXAddr()Gets the physical address that is actively being used to send requests. synchronized StringgetEndpointReferenceAddress()Gets the unique WS-Discovery target service EPR. List<QName>getTypes()Gets types of the hosting service. Map<String, HostedServiceProxy>getHostedServices()Gets all hosted service proxies. synchronized Optional<ThisModelType>getThisModel()Gets the DPWS ThisModel information. synchronized Optional<ThisDeviceType>getThisDevice()Gets the DPWS ThisDevice information. synchronized voidregister(Interceptor interceptor)Registers a callback object. synchronized SoapMessagesendRequestResponse(SoapMessage request)Sends a SOAP request message and waits for the response to be received from the recipient. StringtoString()-
-
Method Detail
-
getRequestResponseClient
RequestResponseClient getRequestResponseClient()
-
getActiveXAddr
String getActiveXAddr()
Gets the physical address that is actively being used to send requests.
A hosting service can have different physical addresses in order to be accessible. The one that is returned with this function is the one that was used to initially resolve metadata (GetTransfer requests).
- Returns:
the currently active EPR address.
-
getEndpointReferenceAddress
synchronized String getEndpointReferenceAddress()
Gets the unique WS-Discovery target service EPR.
If TLS is enforced, the value of the endpoint reference address as returned by this function is trustworthy (opposed to getEprAddress, which is potentially retrieved via unsecured UDP).
- Returns:
WS-Discovery target service EPR.
-
getTypes
List<QName> getTypes()
Gets types of the hosting service.
- Returns:
list of types, which classifies the hosting service.
-
getHostedServices
Map<String, HostedServiceProxy> getHostedServices()
Gets all hosted service proxies.
- Returns:
all hosted services.
-
getThisModel
synchronized Optional<ThisModelType> getThisModel()
Gets the DPWS ThisModel information.
- Returns:
ThisModel information.
-
getThisDevice
synchronized Optional<ThisDeviceType> getThisDevice()
Gets the DPWS ThisDevice information.
- Returns:
ThisDevice information.
-
register
synchronized void register(Interceptor interceptor)
Registers a callback object.
- Parameters:
interceptor- an object that possesses MessageInterceptor annotated methods.
-
sendRequestResponse
synchronized SoapMessage sendRequestResponse(SoapMessage request)
Sends a SOAP request message and waits for the response to be received from the recipient.
- Parameters:
request- outgoing request message.- Returns:
incoming response message.
-
-
-
-