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