@Beta public class MockMetadataServerTransport extends MockHttpTransport
Beta
MockHttpTransport.Builder
Constructor and Description |
---|
MockMetadataServerTransport(String accessToken) |
Modifier and Type | Method and Description |
---|---|
LowLevelHttpRequest |
buildRequest(String method,
String url) |
void |
setTokenRequestStatusCode(Integer tokenRequestStatusCode) |
getLowLevelHttpRequest, getSupportedMethods, supportsMethod
createRequestFactory, createRequestFactory, isMtls, shutdown
public MockMetadataServerTransport(String accessToken)
public void setTokenRequestStatusCode(Integer tokenRequestStatusCode)
public LowLevelHttpRequest buildRequest(String method, String url) throws IOException
buildRequest
in class MockHttpTransport
IOException
Copyright © 2010–2021 Google. All rights reserved.