@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)
Fire a SAB 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
SabTransportgetResponse in interface SabTransportrequest - the request, serialized XMLIOExceptionpublic InputStream getRestResponse(String organisationAbbreviation, String role)
getRestResponse in interface SabTransportCopyright © 2012–2015 Pivotal Software, Inc.. All rights reserved.