Class ThriftDocServicePlugin

  • All Implemented Interfaces:
    com.linecorp.armeria.server.docs.DocServicePlugin

    public class ThriftDocServicePlugin
    extends Object
    implements com.linecorp.armeria.server.docs.DocServicePlugin
    DocServicePlugin implementation that supports THttpServices.
    • Constructor Detail

      • ThriftDocServicePlugin

        public ThriftDocServicePlugin()
    • Method Detail

      • supportedServiceTypes

        public Set<Class<? extends com.linecorp.armeria.server.Service<?,​?>>> supportedServiceTypes()
        Specified by:
        supportedServiceTypes in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • generateSpecification

        public com.linecorp.armeria.server.docs.ServiceSpecification generateSpecification​(Set<com.linecorp.armeria.server.ServiceConfig> serviceConfigs)
        Specified by:
        generateSpecification in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • loadDocStrings

        public Map<String,​String> loadDocStrings​(Set<com.linecorp.armeria.server.ServiceConfig> serviceConfigs)
        Specified by:
        loadDocStrings in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • supportedExampleRequestTypes

        public Set<Class<?>> supportedExampleRequestTypes()
        Specified by:
        supportedExampleRequestTypes in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • guessServiceName

        public Optional<String> guessServiceName​(Object exampleRequest)
        Specified by:
        guessServiceName in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • guessServiceMethodName

        public Optional<String> guessServiceMethodName​(Object exampleRequest)
        Specified by:
        guessServiceMethodName in interface com.linecorp.armeria.server.docs.DocServicePlugin
      • serializeExampleRequest

        public Optional<String> serializeExampleRequest​(String serviceName,
                                                        String methodName,
                                                        Object exampleRequest)
        Specified by:
        serializeExampleRequest in interface com.linecorp.armeria.server.docs.DocServicePlugin