@org.apache.knox.gateway.i18n.resources.Resources public interface Resources { @Resource( text="Invalid format" ) String parseTemplateFailureReason( String template ); }
private static String calcBundleName( final Class<?> clazz ) { String bundle = null; final Resources anno = clazz.getAnnotation( Resources.class ); if( anno != null ) { bundle = anno.bundle(); if( Resources.DEFAULT_BUNDLE.equals( bundle ) ) { bundle = null; } } if( bundle == null ) { bundle = clazz.getCanonicalName().replace( '.', '/' ); } return bundle; }
private static final String calcBundleName( final Class<?> clazz ) { String bundle = null; final Resources anno = clazz.getAnnotation( Resources.class ); if( anno != null ) { bundle = anno.bundle(); if( Resources.DEFAULT_BUNDLE.equals( bundle ) ) { bundle = null; } } if( bundle == null ) { bundle = clazz.getCanonicalName().replace( '.', '/' ); } return bundle; }
@org.apache.knox.gateway.i18n.resources.Resources public interface Resources { @Resource( text="Invalid format" ) String parseTemplateFailureReason( String template ); }
@Resources public interface GatewaySpiResources { @Resource(text = "Groups: {0}") String groupsList( String groups ); @Resource(text = "Effective User: {0}") String effectiveUser( String user ); }
@Resources public interface GatewaySpiResources { @Resource(text = "Groups: {0}") String groupsList( String groups ); @Resource(text = "Effective User: {0}") String effectiveUser( String user ); }
@Resources public interface SpiGatewayResources { @Resource( text="Service connectivity error." ) String dispatchConnectionError(); @Resource( text="Request method: {0}" ) String requestMethod( String method ); @Resource( text="Response status: {0}" ) String responseStatus( int status ); }
@Resources public interface UrlRewriteResources { @Resource( text="No importer for descriptor format {0}" ) String noImporterForFormat( String format ); @Resource( text="No exporter for descriptor format {0}" ) String noExporterForFormat( String format ); @Resource( text="Unexpected selector type {0}" ) String unexpectedRewritePathSelector( UrlRewriteFilterPathDescriptor selector ); @Resource( text="Unexpected selected node type {0}" ) String unexpectedSelectedNodeType( Object node ); @Resource( text="Invalid frontend rewrite function parameter {0}" ) String invalidFrontendFunctionParameter( String parameter ); }
@Resources public interface AclsAuthorizationResources { @Resource( text = "Response status: {0}" ) String responseStatus( int status ); }
@Resources public interface SpiGatewayResources { @Resource( text="Service connectivity error." ) String dispatchConnectionError(); @Resource( text="Request method: {0}" ) String requestMethod( String method ); @Resource( text="Response status: {0}" ) String responseStatus( int status ); }
@Resources public interface UrlRewriteResources { @Resource( text="No importer for descriptor format {0}" ) String noImporterForFormat( String format ); @Resource( text="No exporter for descriptor format {0}" ) String noExporterForFormat( String format ); @Resource( text="Unexpected selector type {0}" ) String unexpectedRewritePathSelector( UrlRewriteFilterPathDescriptor selector ); @Resource( text="Unexpected selected node type {0}" ) String unexpectedSelectedNodeType( Object node ); @Resource( text="Invalid frontend rewrite function parameter {0}" ) String invalidFrontendFunctionParameter( String parameter ); }
@Resources public interface GatewayResources {
@Resources public interface GatewayResources {