Class InterceptorService

  • All Implemented Interfaces:
    org.wso2.msf4j.Microservice

    @Path("/interceptor-service")
    public class InterceptorService
    extends java.lang.Object
    implements org.wso2.msf4j.Microservice
    Interceptor example micro-service class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getServiceName()
      Method for getting the micro-service name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InterceptorService

        public InterceptorService()
    • Method Detail

      • getServiceName

        @GET
        @Path("/service-name")
        public java.lang.String getServiceName()
        Method for getting the micro-service name. curl http://localhost:9090/interceptor-service/service-name
        Returns:
        name of the micro-service.