|
|
@ -1,6 +1,6 @@ |
|
|
|
package com.fr.plugin.demo.before.init.event; |
|
|
|
package com.fr.plugin.demo.before.init.event; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.decision.fun.impl.AbstractBeforeInitEventProvider; |
|
|
|
import com.fr.decision.fun.impl.AbstractDecisionInitEventProvider; |
|
|
|
import com.fr.decision.webservice.utils.WebServiceUtils; |
|
|
|
import com.fr.decision.webservice.utils.WebServiceUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.plugin.transform.FunctionRecorder; |
|
|
|
import com.fr.plugin.transform.FunctionRecorder; |
|
|
@ -13,9 +13,9 @@ import javax.servlet.http.HttpServletRequest; |
|
|
|
* @Desciption: |
|
|
|
* @Desciption: |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@FunctionRecorder |
|
|
|
@FunctionRecorder |
|
|
|
public class CustomBeforeInitEventProvider extends AbstractBeforeInitEventProvider { |
|
|
|
public class CustomBeforeInitEventProvider extends AbstractDecisionInitEventProvider { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void action(HttpServletRequest httpServletRequest) { |
|
|
|
public void before(HttpServletRequest httpServletRequest) { |
|
|
|
FineLoggerFactory.getLogger().error(WebServiceUtils.getIpInfoFromRequest(httpServletRequest) + " init decision"); |
|
|
|
FineLoggerFactory.getLogger().error(WebServiceUtils.getIpInfoFromRequest(httpServletRequest) + " init decision"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |