Package org.nameapi.client.services
Class NameApiBaseCommand<T,A,R>
- java.lang.Object
-
- com.optimaize.command4j.commands.BaseCommand<A,R>
-
- com.optimaize.anythingworks.client.rest.RestBaseCommand<T,A,R>
-
- org.nameapi.client.services.NameApiBaseCommand<T,A,R>
-
- Type Parameters:
T- The wsdl port type.
- All Implemented Interfaces:
com.optimaize.command4j.Command<A,R>,com.optimaize.command4j.commands.CombinableCommand<A,R>
- Direct Known Subclasses:
DisposableEmailAddressDetectorCommand,EmailDomainTypeClassifierCommand,EmailNameParserCommand,ExceptionThrowerCommand,PersonGenderizerCommand,PersonMatcherCommand,PersonNameFormatterCommand,PersonNameParserCommand,PersonRiskDetectorCommand,PingCommand
public abstract class NameApiBaseCommand<T,A,R> extends com.optimaize.anythingworks.client.rest.RestBaseCommand<T,A,R>Adds NameAPI-specific functionality to the BaseCommand.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCLIENT_VERSION
-
Constructor Summary
Constructors Modifier Constructor Description protectedNameApiBaseCommand(Class<T> wsdlPortType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetApiKey(com.optimaize.command4j.ExecutionContext ec)protected org.nameapi.ontology5.input.context.ContextgetContext(com.optimaize.command4j.ExecutionContext ec)protected com.optimaize.anythingworks.client.rest.http.RestHttpClientmakeClient(com.optimaize.command4j.ExecutionContext ec)-
Methods inherited from class com.optimaize.anythingworks.client.rest.RestBaseCommand
createCacheKey, createPort, getHost, getPort, getPortUrlFactory, makeBaseUrl
-
Methods inherited from class com.optimaize.command4j.commands.BaseCommand
and, andThen, concat, getName, ifNotNullOr, ifTrueOr, toString, withValue
-
-
-
-
Field Detail
-
CLIENT_VERSION
protected static String CLIENT_VERSION
-
-
Method Detail
-
getContext
@NotNull protected org.nameapi.ontology5.input.context.Context getContext(@NotNull com.optimaize.command4j.ExecutionContext ec)
-
getApiKey
@NotNull protected String getApiKey(com.optimaize.command4j.ExecutionContext ec)
-
-