Skip to content

Commit

Permalink
chore: Add back origin HttpJsonOperationStub.create() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 committed Feb 1, 2023
1 parent a3527e1 commit 2e1acbc
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,45 @@ public class HttpJsonOperationsStub extends OperationsStub {
private final BackgroundResource backgroundResources;
private final HttpJsonStubCallableFactory callableFactory;

public static final HttpJsonOperationsStub create(
OperationsStubSettings settings)
throws IOException {
return new HttpJsonOperationsStub(
settings, ClientContext.create(settings), new HashMap<>());
}

public static final HttpJsonOperationsStub create(
ClientContext clientContext)
throws IOException {
return new HttpJsonOperationsStub(
OperationsStubSettings.newBuilder().build(), clientContext, new HashMap<>());
}

public static final HttpJsonOperationsStub create(
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory)
throws IOException {
return new HttpJsonOperationsStub(
OperationsStubSettings.newBuilder().build(),
clientContext,
callableFactory,
TypeRegistry.getEmptyTypeRegistry(),
new HashMap<>());
}

public static final HttpJsonOperationsStub create(
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory,
TypeRegistry typeRegistry)
throws IOException {
return new HttpJsonOperationsStub(
OperationsStubSettings.newBuilder().build(),
clientContext,
callableFactory,
typeRegistry,
new HashMap<>());
}

public static final HttpJsonOperationsStub create(
OperationsStubSettings settings, Map<String, String> customOperationHttpBindings)
throws IOException {
Expand Down

0 comments on commit 2e1acbc

Please sign in to comment.