Ejemplo n.º 1
0
 public EndpointIdentity getEndpointIdentity() {
   if (getNetworkConfiguration().getTransportType().equals(TransportType.HTTP)) {
     return EndpointIdentityFactory.createUrlEndpointIdentity(mHttpConfiguration.getUrlEndpoint());
   } else {
     return EndpointIdentityFactory.createServiceIdentity("DeviceMetricsService");
   }
 }
Ejemplo n.º 2
0
 public EndpointIdentity getStaticCredentialEndpointIdentity() {
   return EndpointIdentityFactory.createUrlEndpointIdentity(
       mHttpConfiguration.getStaticCredentialUrlEndpoint());
 }