public boolean isConsumer() { return InvocationType.CONSUMER.equals(invocationType); }
public Converter findConverter(InvocationType invocationType, Type provider, Type swagger) { if (InvocationType.CONSUMER.equals(invocationType)) { return findConverter(provider, swagger); } return findConverter(swagger, provider); }
public static Response createFail(InvocationType invocationType, Throwable throwable) { if (InvocationType.CONSUMER.equals(invocationType)) { return createConsumerFail(throwable); } return createProducerFail(throwable); }
public List<Handler> getHandlerChain() { return (InvocationType.CONSUMER.equals(invocationType)) ? schemaMeta.getConsumerHandlerChain() : schemaMeta.getProviderHandlerChain(); }
public static Response createFail(InvocationType invocationType, String errorMsg) { CommonExceptionData errorData = new CommonExceptionData(errorMsg); if (InvocationType.CONSUMER.equals(invocationType)) { return createFail(ExceptionFactory.createConsumerException(errorData)); } return createFail(ExceptionFactory.createProducerException(errorData)); }
public boolean isConsumer() { return InvocationType.CONSUMER.equals(invocationType); }
public Converter findConverter(InvocationType invocationType, Type provider, Type swagger) { if (InvocationType.CONSUMER.equals(invocationType)) { return findConverter(provider, swagger); } return findConverter(swagger, provider); }
public static Response createFail(InvocationType invocationType, Throwable throwable) { if (InvocationType.CONSUMER.equals(invocationType)) { return createConsumerFail(throwable); } return createProducerFail(throwable); }
public List<Handler> getHandlerChain() { return (InvocationType.CONSUMER.equals(invocationType)) ? schemaMeta.getConsumerHandlerChain() : schemaMeta.getProviderHandlerChain(); }
public static Response createFail(InvocationType invocationType, String errorMsg) { CommonExceptionData errorData = new CommonExceptionData(errorMsg); if (InvocationType.CONSUMER.equals(invocationType)) { return createFail(ExceptionFactory.createConsumerException(errorData)); } return createFail(ExceptionFactory.createProducerException(errorData)); }