解决方法
我猜这个功能不在Liferay 6.2中:(
jsonws.web.service.api.discoverable=false
参考:https://issues.liferay.com/browse/LPS-50668
我所知道的选项可以在6.2中完成
> ServletFilter Hook
在那里写下你的逻辑
//写特定的模式
<servlet-filter> <servlet-filter-name>ServiceAccessPage</servlet-filter-name> <servlet-filter-impl>com.check.access.ServiceAccessPage</servlet-filter-impl> <init-param> <param-name>initparam</param-name> <param-value>Hi IP Address Filter</param-value> </init-param> </servlet-filter> <servlet-filter-mapping> <servlet-filter-name>ServiceAccessPage</servlet-filter-name> <url-pattern>/api/jsonws</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </servlet-filter-mapping>
在ServiceAccessPage.java中
public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws java.io.IOException,ServletException { //get user & Redirect to session.setAttribute(WebKeys.LAST_PATH,redirectionFailPath); logger.info("DoFilter method being called"); }
>克里特岛服务行动预行动.
[这将在每个动作之前调用:(]
>使用EXT