You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
package com.fr.plugin.cluster.req.demo.url; |
|
|
|
import com.fr.decision.fun.impl.AbstractURLAliasProvider; |
|
import com.fr.decision.webservice.url.alias.URLAlias; |
|
import com.fr.decision.webservice.url.alias.URLAliasFactory; |
|
import com.fr.stable.fun.mark.API; |
|
|
|
import static com.fr.plugin.cluster.req.demo.URIConstants.CREATE; |
|
import static com.fr.plugin.cluster.req.demo.URIConstants.SEARCH; |
|
import static com.fr.plugin.cluster.req.demo.URIConstants.VIEW; |
|
|
|
/** |
|
* |
|
*/ |
|
@API(level = AbstractURLAliasProvider.CURRENT_LEVEL) |
|
public class ReqDemoUrlProvider extends AbstractURLAliasProvider { |
|
@Override |
|
public URLAlias[] registerAlias() { |
|
return new URLAlias[]{ |
|
URLAliasFactory.createPluginAlias(CREATE, CREATE, true), |
|
URLAliasFactory.createPluginAlias(VIEW, VIEW, true), |
|
URLAliasFactory.createPluginAlias(SEARCH, SEARCH, true), |
|
}; |
|
} |
|
|
|
@Override |
|
public int currentAPILevel() { |
|
return CURRENT_LEVEL; |
|
} |
|
|
|
@Override |
|
public String mark4Provider() { |
|
return getClass().getName(); |
|
} |
|
}
|
|
|