@Component public class HttpClientTransport extends Object implements SabTransport
| Constructor and Description |
|---|
HttpClientTransport(String sabUserName,
String sabPassword,
String sabRestUserName,
String sabRestPassword,
URI sabEndpoint,
URI restEndPoint) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResponse(String request) |
InputStream |
getRestResponse(String organisationAbbreviation,
String role) |
@Autowired
public HttpClientTransport(@Value(value="${sab.username}")
String sabUserName,
@Value(value="${sab.password}")
String sabPassword,
@Value(value="${sab-rest.username}")
String sabRestUserName,
@Value(value="${sab-rest.password}")
String sabRestPassword,
@Value(value="${sab.endpoint}")
URI sabEndpoint,
@Value(value="${sab-rest.endpoint}")
URI restEndPoint)
public InputStream getResponse(String request) throws IOException
getResponse in interface SabTransportIOExceptionpublic InputStream getRestResponse(String organisationAbbreviation, String role)
getRestResponse in interface SabTransportCopyright © 2012–2016 Pivotal Software, Inc.. All rights reserved.