update agreements

This commit is contained in:
Sola
2016-04-27 18:30:54 +08:00
parent 1e18bc3179
commit a43ebe24c4
70 changed files with 76 additions and 259 deletions

View File

@@ -9,10 +9,7 @@ import java.io.IOException;
import java.io.PrintWriter;
/**
* ***********************************************
* Created by Sola on 2014/8/4.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@WebServlet(name = "Index",urlPatterns = "/index",loadOnStartup = 1)
public class Index extends HttpServlet {

View File

@@ -7,10 +7,7 @@ import love.sola.netsupport.wechat.Command;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2016/2/27.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public abstract class API {

View File

@@ -24,10 +24,7 @@ import java.util.Map;
import java.util.Set;
/**
* ***********************************************
* Created by Sola on 2016/2/27.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@WebServlet(name = "APIRouter", urlPatterns = "/api/*", loadOnStartup = 11)
public class APIRouter extends HttpServlet {

View File

@@ -9,10 +9,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* ***********************************************
* Created by Sola on 2015/12/21.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class CheckSession extends API {

View File

@@ -3,10 +3,7 @@ package love.sola.netsupport.api;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/11/5.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Error {

View File

@@ -23,10 +23,7 @@ import java.io.IOException;
import java.io.PrintWriter;
/**
* ***********************************************
* Created by Sola on 2015/12/12.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@WebServlet(name = "Login", urlPatterns = "/api/admin/login", loadOnStartup = 12)

View File

@@ -11,10 +11,7 @@ import love.sola.netsupport.wechat.Command;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2014/8/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class GetUser extends API {

View File

@@ -18,10 +18,7 @@ import org.hibernate.Session;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/22.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketPush extends API {

View File

@@ -10,10 +10,7 @@ import javax.servlet.http.HttpServletRequest;
import java.util.Set;
/**
* ***********************************************
* Created by Sola on 2015/12/15.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class DashBoard extends API {

View File

@@ -10,10 +10,7 @@ import love.sola.netsupport.wechat.Command;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/15.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class FlushCache extends API {

View File

@@ -13,10 +13,7 @@ import org.hibernate.Session;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class SetPassword extends API {

View File

@@ -18,10 +18,7 @@ import java.util.Calendar;
import java.util.Date;
/**
* ***********************************************
* Created by Sola on 2015/12/18.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketLog extends API {

View File

@@ -11,10 +11,7 @@ import love.sola.netsupport.wechat.Command;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/13.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketLookup extends API {

View File

@@ -10,10 +10,7 @@ import love.sola.netsupport.wechat.Command;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/18.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketTrack extends API {

View File

@@ -16,10 +16,7 @@ import javax.servlet.http.HttpServletRequest;
import java.util.Date;
/**
* ***********************************************
* Created by Sola on 2015/12/13.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketUpdate extends API {

View File

@@ -16,10 +16,7 @@ import javax.servlet.http.HttpServletRequest;
import static love.sola.netsupport.util.Checker.*;
/**
* ***********************************************
* Created by Sola on 2015/12/15.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ProfileModify extends API {

View File

@@ -24,10 +24,7 @@ import java.sql.SQLException;
import static love.sola.netsupport.util.Checker.*;
/**
* ***********************************************
* Created by Sola on 2015/11/29.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Register extends API {

View File

@@ -16,10 +16,7 @@ import org.hibernate.criterion.Restrictions;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/4.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketQuery extends API {

View File

@@ -16,10 +16,7 @@ import org.hibernate.Session;
import javax.servlet.http.HttpServletRequest;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TicketSubmit extends API {

View File

@@ -18,10 +18,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* ***********************************************
* Created by Sola on 2014/8/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@WebServlet(name = "OAuth2", urlPatterns = "/oauth2/callback", loadOnStartup = 21, asyncSupported = true)
public class OAuth2 extends HttpServlet {

View File

@@ -6,10 +6,7 @@ import javax.servlet.AsyncContext;
import javax.servlet.http.HttpServletResponse;
/**
* ***********************************************
* Created by Sola on 2016/3/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public interface OAuth2Handler {

View File

@@ -9,10 +9,7 @@ import java.util.Map;
import java.util.regex.Pattern;
/**
* ***********************************************
* Created by Sola on 2015/12/29.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Cortana {

View File

@@ -8,10 +8,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* ***********************************************
* Created by Sola on 2015/11/30.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Lang {

View File

@@ -4,10 +4,7 @@ import lombok.ToString;
import love.sola.netsupport.sql.TableConfig;
/**
* ***********************************************
* Created by Sola on 2015/11/23.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@ToString
public class Settings {

View File

@@ -8,6 +8,9 @@ import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
import java.io.InputStream;
/**
* @author chanjarster
*/
@XStreamAlias("wechat-config")
@ToString
public class WxMpXmlInMemoryConfigStorage extends WxMpInMemoryConfigStorage {

View File

@@ -7,10 +7,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Access {

View File

@@ -1,10 +1,7 @@
package love.sola.netsupport.enums;
/**
* ***********************************************
* Created by Sola on 2015/12/14.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Attribute {

View File

@@ -5,10 +5,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* ***********************************************
* Created by Sola on 2015/11/30.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Block {

View File

@@ -6,10 +6,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2014/8/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public enum ISP {

View File

@@ -3,6 +3,9 @@ package love.sola.netsupport.enums;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
/**
* @author Sola {@literal <dev@sola.love>}
*/
@Converter
public class ISPConverter implements AttributeConverter<ISP, Integer> {

View File

@@ -7,10 +7,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Status {

View File

@@ -12,10 +12,7 @@ import javax.persistence.Id;
import javax.persistence.Table;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@Data

View File

@@ -11,10 +11,7 @@ import javax.persistence.*;
import java.util.Date;
/**
* ***********************************************
* Created by Sola on 2015/12/2.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@Data
@AllArgsConstructor

View File

@@ -10,10 +10,7 @@ import love.sola.netsupport.enums.ISPConverter;
import javax.persistence.*;
/**
* ***********************************************
* Created by Sola on 2014/8/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@Data
@AllArgsConstructor

View File

@@ -26,7 +26,7 @@ import java.util.Set;
import java.util.UUID;
/**
* @author Sola
* @author Sola {@literal <dev@sola.love>}
*/
@EqualsAndHashCode(of = "id")
public final class MapSession implements WxSession, Serializable {

View File

@@ -26,7 +26,7 @@ import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* @author Sola
* @author Sola {@literal <dev@sola.love>}
*/
public class MapSessionRepository {

View File

@@ -4,10 +4,7 @@ package love.sola.netsupport.session;
import java.util.Collection;
/**
* ***********************************************
* Created by Sola on 2015/12/14.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class WechatSession {

View File

@@ -3,7 +3,7 @@ package love.sola.netsupport.session;
import java.util.Set;
/**
* @author Sola
* @author Sola {@literal <dev@sola.love>}
*/
public interface WxSession {

View File

@@ -25,10 +25,7 @@ import java.io.IOException;
import java.util.Date;
/**
* ***********************************************
* Created by Sola on 2014/8/20.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class SQLCore {

View File

@@ -5,10 +5,7 @@ import love.sola.netsupport.config.Settings;
import java.sql.*;
/**
* ***********************************************
* Created by Sola on 2015/11/10.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TableConfig extends SQLCore{

View File

@@ -6,10 +6,7 @@ import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
/**
* ***********************************************
* Created by Sola on 2015/12/12.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TableOperator extends SQLCore {

View File

@@ -13,10 +13,7 @@ import org.hibernate.envers.query.AuditEntity;
import java.util.List;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class TableTicket extends SQLCore {

View File

@@ -12,10 +12,7 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
/**
* ***********************************************
* Created by Sola on 2015/11/10.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@SuppressWarnings("Duplicates")
public class TableUser extends SQLCore {

View File

@@ -4,10 +4,7 @@ import love.sola.netsupport.enums.Block;
import love.sola.netsupport.enums.ISP;
/**
* ***********************************************
* Created by Sola on 2015/12/12.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Checker {

View File

@@ -3,10 +3,7 @@ package love.sola.netsupport.util;
import org.mindrot.jbcrypt.BCrypt;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Crypto {

View File

@@ -8,10 +8,7 @@ import java.text.SimpleDateFormat;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/11.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ParseUtil {

View File

@@ -8,6 +8,9 @@ import java.security.Key;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
/**
* @author Sola {@literal <dev@sola.love>}
*/
public class RSAUtil {

View File

@@ -8,10 +8,7 @@ import java.io.IOException;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class Redirect {

View File

@@ -11,10 +11,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/11/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public enum Command {

View File

@@ -24,10 +24,7 @@ import java.io.IOException;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/11/2.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
@WebServlet(name = "WxMpServlet", urlPatterns = "/wechat", loadOnStartup = 99)
public class WxMpServlet extends HttpServlet {

View File

@@ -10,10 +10,7 @@ import me.chanjar.weixin.mp.bean.WxMpXmlOutMessage;
import java.util.Map;
/**
* ***********************************************
* Created by Sola on 2015/12/29.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class AutoReplyHandler implements WxMpMessageHandler {

View File

@@ -24,10 +24,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/11.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class CancelHandler implements WxMpMessageHandler {

View File

@@ -24,10 +24,7 @@ import static love.sola.netsupport.config.Lang.format;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/15.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ProfileHandler implements WxMpMessageHandler, OAuth2Handler {

View File

@@ -24,10 +24,7 @@ import static love.sola.netsupport.config.Lang.format;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/8.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class QueryHandler implements WxMpMessageHandler {

View File

@@ -19,10 +19,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.format;
/**
* ***********************************************
* Created by Sola on 2015/11/4.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class RegisterHandler implements WxMpMessageHandler {

View File

@@ -22,10 +22,7 @@ import static love.sola.netsupport.config.Lang.format;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/9.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class SubmitHandler implements WxMpMessageHandler {

View File

@@ -22,10 +22,7 @@ import java.util.Map;
import static love.sola.netsupport.config.Lang.format;
/**
* ***********************************************
* Created by Sola on 2015/12/25.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class SubscribeHandler implements WxMpMessageHandler {

View File

@@ -25,10 +25,7 @@ import static love.sola.netsupport.config.Lang.format;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/12.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class LoginHandler implements WxMpMessageHandler, OAuth2Handler {

View File

@@ -16,10 +16,7 @@ import static love.sola.netsupport.config.Lang.format;
import static love.sola.netsupport.config.Lang.lang;
/**
* ***********************************************
* Created by Sola on 2015/12/28.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class OperatorInfoHandler implements WxMpMessageHandler {

View File

@@ -18,10 +18,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* ***********************************************
* Created by Sola on 2015/12/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class SignHandler implements WxMpMessageHandler {

View File

@@ -10,10 +10,7 @@ import me.chanjar.weixin.mp.bean.WxMpXmlMessage;
import java.util.concurrent.TimeUnit;
/**
* ***********************************************
* Created by Sola on 2015/11/4.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class CheckSpamMatcher implements WxMpMessageMatcher {

View File

@@ -8,10 +8,7 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* ***********************************************
* Created by Sola on 2015/11/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class CommandMatcher implements WxMpMessageMatcher {

View File

@@ -5,10 +5,7 @@ import me.chanjar.weixin.mp.api.WxMpMessageMatcher;
import me.chanjar.weixin.mp.bean.WxMpXmlMessage;
/**
* ***********************************************
* Created by Sola on 2015/11/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class RegisterMatcher implements WxMpMessageMatcher {

View File

@@ -6,10 +6,7 @@ import org.reflections.Reflections;
import java.util.Set;
/**
* ***********************************************
* Created by Sola on 2016/3/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ReflectionTest {

View File

@@ -3,10 +3,7 @@ package love.sola.netsupport.config;
import org.junit.Test;
/**
* ***********************************************
* Created by Sola on 2016/4/18.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class CortanaTest {

View File

@@ -3,10 +3,7 @@ package love.sola.netsupport.config;
import org.junit.Test;
/**
* ***********************************************
* Created by Sola on 2016/3/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ReflectionTest {

View File

@@ -3,10 +3,7 @@ package love.sola.netsupport.enums;
import org.junit.Test;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class ReflectionTest {

View File

@@ -10,10 +10,7 @@ import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
/**
* ***********************************************
* Created by Sola on 2015/12/6.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class EncryptTest {

View File

@@ -7,10 +7,7 @@ import org.junit.Test;
import java.util.Date;
/**
* ***********************************************
* Created by Sola on 2015/12/2.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class GsonTest {

View File

@@ -9,10 +9,7 @@ import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* ***********************************************
* Created by Sola on 2016/3/26.
* Don't modify this source without my agreement
* ***********************************************
* @author Sola {@literal <dev@sola.love>}
*/
public class URLEncodeTest {