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.
42 lines
1.0 KiB
42 lines
1.0 KiB
3 years ago
|
package com.fr.plugin.hwWeb.handler;
|
||
|
|
||
|
import com.fr.decision.fun.impl.BaseHttpHandler;
|
||
|
import com.fr.log.FineLoggerFactory;
|
||
|
import com.fr.plugin.hwWeb.bean.simple.account.PluginSimpleConfig;
|
||
|
import com.fr.plugin.hwWeb.utils.ResponseUtils;
|
||
|
import com.fr.third.springframework.web.bind.annotation.RequestMethod;
|
||
|
|
||
|
import javax.servlet.http.HttpServletRequest;
|
||
|
import javax.servlet.http.HttpServletResponse;
|
||
|
|
||
|
public class GetInfoHandler extends BaseHttpHandler {
|
||
|
|
||
|
public GetInfoHandler() {
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public RequestMethod getMethod() {
|
||
|
return RequestMethod.GET;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getPath() {
|
||
|
return "/getInfo";
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean isPublic() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void handle(HttpServletRequest req, HttpServletResponse res) throws Exception {
|
||
|
PluginSimpleConfig psc = PluginSimpleConfig.getInstance();
|
||
|
|
||
|
String result = psc.getHomePage()+","+psc.getHelpPage();
|
||
|
|
||
|
ResponseUtils.successResponse(res,result);
|
||
|
}
|
||
|
}
|
||
|
|