Package io.vertx.reactivex.grpc.common
Class ServiceName
- java.lang.Object
-
- io.vertx.reactivex.grpc.common.ServiceName
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ServiceName>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ServiceName(ServiceName delegate)ServiceName(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceNamecreate(String fqn)Create a service name from its fully qualified name, e.gcom.examples.MyServicestatic ServiceNamecreate(String packageName, String name)Create a service name from its package name and namebooleanequals(Object o)StringfullyQualifiedName()ServiceNamegetDelegate()inthashCode()Stringname()static ServiceNamenewInstance(ServiceName arg)StringpackageName()StringpathOf(String method)Create the path of a givenmethodto call.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ServiceName> __TYPE_ARG
-
-
Constructor Detail
-
ServiceName
public ServiceName(ServiceName delegate)
-
ServiceName
public ServiceName(Object delegate)
-
-
Method Detail
-
getDelegate
public ServiceName getDelegate()
-
create
public static ServiceName create(String fqn)
Create a service name from its fully qualified name, e.gcom.examples.MyService- Parameters:
fqn- the fully qualified service name- Returns:
- the service name
-
create
public static ServiceName create(String packageName, String name)
Create a service name from its package name and name- Parameters:
packageName- the package namename- the name- Returns:
- the service name
-
name
public String name()
- Returns:
- the name
-
packageName
public String packageName()
- Returns:
- the package name
-
fullyQualifiedName
public String fullyQualifiedName()
- Returns:
- the fully qualified name
-
pathOf
public String pathOf(String method)
Create the path of a givenmethodto call.- Parameters:
method- the method- Returns:
- the path, e.g
/com.examples.MyService/MyMethod
-
newInstance
public static ServiceName newInstance(ServiceName arg)
-
-