code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
package net.sourceforge.jsocks;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
Proxy which describes SOCKS4 proxy.
*/
public class Socks4Proxy extends Proxy implements Cloneable{
//Data members
String user;
//Public ... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/Socks4Proxy.java | Java | asf20 | 3,109 |
package net.sourceforge.jsocks;
import java.net.*;
import java.io.*;
/**
* SocksSocket tryies to look very similar to normal Socket,
* while allowing connections through the SOCKS4 or 5 proxy.
* To use this class you will have to identify proxy you need
* to use, Proxy class allows you to set default pro... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/SocksSocket.java | Java | asf20 | 8,953 |
package net.sourceforge.jsocks;
/**
SOCKS5 none authentication. Dummy class does almost nothing.
*/
public class AuthenticationNone implements Authentication{
public Object[] doSocksAuthentication(int methodId,
java.net.Socket proxySocket)
throws jav... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/AuthenticationNone.java | Java | asf20 | 511 |
package net.sourceforge.jsocks;
import net.sourceforge.jsocks.server.*;
import java.net.*;
import java.io.*;
/**
UDP Relay server, used by ProxyServer to perform udp forwarding.
*/
class UDPRelayServer implements Runnable{
DatagramSocket client_sock;
DatagramSocket remote_sock;
Socket co... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/UDPRelayServer.java | Java | asf20 | 6,128 |
package net.sourceforge.jsocks;
import java.net.*;
import java.io.*;
/**
Datagram socket to interract through the firewall.<BR>
Can be used same way as the normal DatagramSocket. One should
be carefull though with the datagram sizes used, as additional data
is present in both incomming and outgoing dat... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/Socks5DatagramSocket.java | Java | asf20 | 16,661 |
package net.sourceforge.jsocks;
/**
The Authentication interface provides for performing method specific
authentication for SOCKS5 connections.
*/
public interface Authentication{
/**
This method is called when SOCKS5 server have selected a particular
authentication method, for whch an implemen... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/Authentication.java | Java | asf20 | 1,667 |
package net.sourceforge.jsocks;
/**
Exception thrown by various socks classes to indicate errors
with protocol or unsuccessful server responses.
*/
public class SocksException extends java.io.IOException{
private static final long serialVersionUID = 6141184566248512277L;
/**
Construct a SocksExcep... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/SocksException.java | Java | asf20 | 2,670 |
package net.sourceforge.jsocks;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InterruptedIOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PushbackInputStream;
import java.net.ConnectException;
import java.net.InetAddress;... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/ProxyServer.java | Java | asf20 | 17,822 |
package net.sourceforge.jsocks;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Enumeration;
import java.util.Hashtable;
/**
SOC... | zzsuper001-linuxshell | src/net/sourceforge/jsocks/Socks5Proxy.java | Java | asf20 | 7,632 |
/**
* Originally from http://www.cornetdesign.com/files/BeanTestCase.java.txt
*/
package org.connectbot.mock;
import junit.framework.TestCase;
import java.lang.reflect.Field;
public class BeanTestCase extends TestCase {
private static final String TEST_STRING_VAL1 = "Some Value";
private static final String TES... | zzsuper001-linuxshell | tests/src/org/connectbot/mock/BeanTestCase.java | Java | asf20 | 7,895 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/mock/NullTransport.java | Java | asf20 | 2,862 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/mock/NullOutputStream.java | Java | asf20 | 937 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/SettingsActivityTest.java | Java | asf20 | 1,463 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/util/PubkeyUtilsTest.java | Java | asf20 | 2,075 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/HostBeanTest.java | Java | asf20 | 2,689 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/SelectionAreaTest.java | Java | asf20 | 3,919 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/HostListActivityTest.java | Java | asf20 | 1,538 |
/*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2007 Kenny Root, Jeffrey Sharkey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | zzsuper001-linuxshell | tests/src/org/connectbot/TerminalBridgeTest.java | Java | asf20 | 4,044 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | zzsuper001-linuxshell | jni/Exec/com_google_ase_Exec.cpp | C++ | asf20 | 5,383 |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := com_google_ase_Exec
LOCAL_CFLAGS := -Werror
LOCAL_SRC_FILES := com_google_ase_Exec.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
| zzsuper001-linuxshell | jni/Exec/Android.mk | Makefile | asf20 | 220 |
# Build both ARMv5TE and x86-32 machine code.
APP_ABI := armeabi x86
| zzsuper001-linuxshell | jni/Application.mk | Makefile | asf20 | 69 |
include $(call all-subdir-makefiles)
| zzsuper001-linuxshell | jni/Android.mk | Makefile | asf20 | 37 |
package cn.nju.zyy.samples;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
@Configuration
public c... | zyy-spring-blog-guide | trunk/src/cn/nju/zyy/samples/CustomerConfiguration.java | Java | asf20 | 500 |
package cn.nju.zyy.samples;
public class Customer {
private long id;
private String firstName;
private String lastName;
private String email;
public Customer() {
}
public Customer(long id, String firstName, String lastName, String email) {
this.id = id;
this.firstName = firstName;
this.l... | zyy-spring-blog-guide | trunk/src/cn/nju/zyy/samples/Customer.java | Java | asf20 | 1,031 |
package cn.nju.zyy.samples;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class CustomerClient {
private CustomerService customerService;
@Autowired
public void setCustomerService(CustomerService customerService) {
... | zyy-spring-blog-guide | trunk/src/cn/nju/zyy/samples/CustomerClient.java | Java | asf20 | 537 |
package cn.nju.zyy.samples;
public interface CustomerService {
public Customer getCustomerById(long id);
}
| zyy-spring-blog-guide | trunk/src/cn/nju/zyy/samples/CustomerService.java | Java | asf20 | 116 |
package cn.nju.zyy.samples;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;
@Component
... | zyy-spring-blog-guide | trunk/src/cn/nju/zyy/samples/DatabaseCustomerService.java | Java | asf20 | 1,194 |
<html>
<head>
</head>
<body>
<div id="results">zhizhangming</div>
</body>
</html> | zzm-calender-gadgets | trunk/myTest.html | HTML | asf20 | 99 |
/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}img,body,html{border:0;}address,caption,cite,code,dfn,em,strong,th,var{fon... | zzm-calender-gadgets | trunk/ext/resources/css/ext-all.css | CSS | asf20 | 146,583 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.c... | zzyyp | trunk/zp/src/com/zp/resource/AnswerResultServices.java | Java | asf20 | 8,762 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/ScheduleGroupServices.java | Java | asf20 | 8,228 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/PaperServices.java | Java | asf20 | 6,300 |
package com.zp.resource.user;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core... | zzyyp | trunk/zp/src/com/zp/resource/user/PermissionServices.java | Java | asf20 | 8,563 |
package com.zp.resource.user;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core... | zzyyp | trunk/zp/src/com/zp/resource/user/RoleServices.java | Java | asf20 | 9,959 |
package com.zp.resource.user;
import java.util.ArrayList;import java.util.Date;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/user/UserServices.java | Java | asf20 | 16,820 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/ScheduleTypeServices.java | Java | asf20 | 6,622 |
package com.zp.resource.psychological;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
imp... | zzyyp | trunk/zp/src/com/zp/resource/psychological/ActivityServices.java | Java | asf20 | 5,337 |
package com.zp.resource.psychological;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
imp... | zzyyp | trunk/zp/src/com/zp/resource/psychological/ServiceServices.java | Java | asf20 | 8,743 |
package com.zp.resource.psychological;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
impo... | zzyyp | trunk/zp/src/com/zp/resource/psychological/OrganizationServices.java | Java | asf20 | 24,264 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.c... | zzyyp | trunk/zp/src/com/zp/resource/PaperQuestionServices.java | Java | asf20 | 7,063 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/ScheduleServices.java | Java | asf20 | 7,167 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/QuestionServices.java | Java | asf20 | 10,841 |
package com.zp.resource;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Medi... | zzyyp | trunk/zp/src/com/zp/resource/AnswerItemServices.java | Java | asf20 | 8,390 |
package com.zp.resource.common;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jav... | zzyyp | trunk/zp/src/com/zp/resource/common/ModuleTypeServices.java | Java | asf20 | 6,308 |
package com.zp.resource.common;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.co... | zzyyp | trunk/zp/src/com/zp/resource/common/OperationLogServices.java | Java | asf20 | 6,549 |
package com.zp.resource.common;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jav... | zzyyp | trunk/zp/src/com/zp/resource/common/ContentTypeServices.java | Java | asf20 | 6,326 |
package com.zp.resource.common;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.activation.MimetypesFileTypeMap;
import javax.servlet.ServletContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELE... | zzyyp | trunk/zp/src/com/zp/resource/common/ContentServices.java | Java | asf20 | 15,948 |
package com.zp.resource.common;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.springframework.stereotype.Component;
... | zzyyp | trunk/zp/src/com/zp/resource/common/BaseServices.java | Java | asf20 | 2,529 |
package com.zp.resource.common;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jav... | zzyyp | trunk/zp/src/com/zp/resource/common/TypeServices.java | Java | asf20 | 6,084 |
package com.zp.framework.spring.web.filter;
/*
* Copyright 2002-2004 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | zzyyp | trunk/zp/src/com/zp/framework/spring/web/filter/CharacterEncodingFilter.java | Java | asf20 | 2,769 |
package com.zp.framework.bean;
public class InitBean {
// 上传文件时缓冲区目录
public static String TEMP_PATH;
// 上传文件时缓冲区大小
public static int TEMP_SIZE;
public void init() {
}
} | zzyyp | trunk/zp/src/com/zp/framework/bean/InitBean.java | Java | asf20 | 233 |
package com.zp.framework.jpa.test;
import java.util.Date;
import java.util.List;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
im... | zzyyp | trunk/zp/src/com/zp/framework/jpa/test/RunJPA.java | Java | asf20 | 6,083 |
package com.zp.framework.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceException;
import javax.persistence.Query;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Criteri... | zzyyp | trunk/zp/src/com/zp/framework/jpa/JpaDao.java | Java | asf20 | 8,259 |
package com.zp.framework.jpa;
import java.util.List;
import com.zp.util.MyException;
/**
* define JPA interface for entity data operation
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @date 2014/2/1
*
*/
public interface IJpaDao {
public void clear() throws MyException;
pu... | zzyyp | trunk/zp/src/com/zp/framework/jpa/IJpaDao.java | Java | asf20 | 1,132 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunServiceServices.java | Java | asf20 | 3,462 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunModuleTypeServices.java | Java | asf20 | 4,193 |
package com.zp.framework.services.test;
import java.util.Date;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunOperationLogServices.java | Java | asf20 | 3,092 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunAnswerItemServices.java | Java | asf20 | 4,277 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunTypeServices.java | Java | asf20 | 4,093 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.junit.Afte... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunUserServices.java | Java | asf20 | 5,074 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunAnswerResultServices.java | Java | asf20 | 4,644 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunContentTypeServices.java | Java | asf20 | 4,146 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunPaperQuestionServices.java | Java | asf20 | 3,532 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunContentServices.java | Java | asf20 | 2,743 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunRoleServices.java | Java | asf20 | 4,309 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunQuestionServices.java | Java | asf20 | 4,588 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunPaperServices.java | Java | asf20 | 3,951 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunOrganizationServices.java | Java | asf20 | 6,853 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunPermissionServices.java | Java | asf20 | 3,538 |
//package com.zp.framework.services.test;
//
//import javax.ws.rs.core.MediaType;
//
//import junit.framework.Assert;
//
//import org.apache.commons.logging.Log;
//import org.apache.commons.logging.LogFactory;
//import org.junit.After;
//import org.junit.Before;
//import org.junit.Test;
//import org.junit.ru... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunDemoServices.java | Java | asf20 | 2,072 |
package com.zp.framework.services.test;
import javax.ws.rs.core.MediaType;
import junit.framework.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... | zzyyp | trunk/zp/src/com/zp/framework/services/test/RunActivityServices.java | Java | asf20 | 3,163 |
package com.zp.util;
import java.util.List;
/**
* define all the Constant used in program
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @date 2014/2/7
*
*/
public class Constant {
public static final Object OBJECT_NULL = null;
public static final List<?> LIST_NULL = null;
p... | zzyyp | trunk/zp/src/com/zp/util/Constant.java | Java | asf20 | 2,914 |
package com.zp.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* package format date tool
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @since 1.0
*
* @date 2014/1/20
*/
public class DateFormatUtil {
/**
* format Date
... | zzyyp | trunk/zp/src/com/zp/util/DateFormatUtil.java | Java | asf20 | 1,725 |
package com.zp.util;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;
public class MyAdvice implements MethodBeforeAdvice,After... | zzyyp | trunk/zp/src/com/zp/util/MyAdvice.java | Java | asf20 | 844 |
package com.zp.util;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* package the MD5 encryption algorithm
*
* @since 1.0
*
* @version 1.0
... | zzyyp | trunk/zp/src/com/zp/util/MD5Util.java | Java | asf20 | 1,584 |
package com.zp.util;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Ele... | zzyyp | trunk/zp/src/com/zp/util/Dom4JUtil.java | Java | asf20 | 1,951 |
package com.zp.util;
/**
* define all the Constant type code in program
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @date 2014/3/2
*
*/
public class ConstantCode {
public static final String CONTENT_CODE = "cm";
public static final String CONTENT_PHILOSOPHY_CODE = "cm01";
pu... | zzyyp | trunk/zp/src/com/zp/util/ConstantCode.java | Java | asf20 | 953 |
package com.zp.util;
/**
* define exception for program
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @date 2014/2/7
*
*/
public class MyException extends Exception {
private static final long serialVersionUID = 1L;
public MyException() {
super();
}
public MyExcepti... | zzyyp | trunk/zp/src/com/zp/util/MyException.java | Java | asf20 | 413 |
package com.zp.util;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
import net.sf.jmimemagic.Magic;
import net.sf.jmimemagic.MagicException;
import net.sf.jmimemagic.MagicMatch;
i... | zzyyp | trunk/zp/src/com/zp/util/ImageUtil.java | Java | asf20 | 3,816 |
package com.zp.util;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonPars... | zzyyp | trunk/zp/src/com/zp/util/JSONUtil.java | Java | asf20 | 4,373 |
package com.zp.util;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Calendar;
import javax.servlet.ServletContext;
import com.sun.jersey.core.header.F... | zzyyp | trunk/zp/src/com/zp/util/FileUtil.java | Java | asf20 | 5,009 |
package com.zp.bean.user;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
import com.zp.domain.LoginInfo;
/**
* define Login java bean for web services return which include ... | zzyyp | trunk/zp/src/com/zp/bean/user/ResultLoginVo.java | Java | asf20 | 942 |
package com.zp.bean.user;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* use to register user information include user information and login
* information
*
* @author chenliju... | zzyyp | trunk/zp/src/com/zp/bean/user/RegisterUserVo.java | Java | asf20 | 879 |
package com.zp.bean.user;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define user java bean for web services return which include User info... | zzyyp | trunk/zp/src/com/zp/bean/user/ResultUserVo.java | Java | asf20 | 948 |
package com.zp.bean.user;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
import com.zp.domain.Role;
/**
* define role java bean for web services ret... | zzyyp | trunk/zp/src/com/zp/bean/user/ResultRoleVo.java | Java | asf20 | 895 |
package com.zp.bean.user;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define permission java bean for web services return which include per... | zzyyp | trunk/zp/src/com/zp/bean/user/ResultPermissionVo.java | Java | asf20 | 985 |
package com.zp.bean.user;
import java.io.Serializable;import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.domain.LoginInfo;
import com.zp.domain.Type;
/**
* define UserVo which incl... | zzyyp | trunk/zp/src/com/zp/bean/user/UserVo.java | Java | asf20 | 1,929 |
package com.zp.bean.user;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.domain.Type;
/**
* define java bean for permission
*
* @author chenlijun08@gmail.com
*
* @v... | zzyyp | trunk/zp/src/com/zp/bean/user/PermissionVo.java | Java | asf20 | 1,483 |
package com.zp.bean.user;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* define base user information java bean
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @dat... | zzyyp | trunk/zp/src/com/zp/bean/user/BaseUserVo.java | Java | asf20 | 1,186 |
package com.zp.bean.user;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define user java bean for web services return which include collectio... | zzyyp | trunk/zp/src/com/zp/bean/user/ResultBaseUserVo.java | Java | asf20 | 785 |
package com.zp.bean.psychological;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define role java bean for web services return which include ... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ResultBaseOrganizationVo.java | Java | asf20 | 807 |
package com.zp.bean.psychological;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* define java bean for base service
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* ... | zzyyp | trunk/zp/src/com/zp/bean/psychological/BaseServiceVo.java | Java | asf20 | 1,472 |
package com.zp.bean.psychological;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* define java bean for organization
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
* @date 2014/3/4
*
*/
@XmlR... | zzyyp | trunk/zp/src/com/zp/bean/psychological/OrganizationVo.java | Java | asf20 | 1,520 |
package com.zp.bean.psychological;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.domain.Type;
/**
* define java bean for base organization
*
* @author chenlijun08@gma... | zzyyp | trunk/zp/src/com/zp/bean/psychological/BaseOrganizationVo.java | Java | asf20 | 1,244 |
package com.zp.bean.psychological;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
import com.zp.domain.Activity;
/**
* define activity information j... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ResultActivityVo.java | Java | asf20 | 794 |
package com.zp.bean.psychological;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.domain.Organization;
/**
* define java bean for service
*
* @author chenlijun08@gmail.com
*
* @version 1.0
*
... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ServiceVo.java | Java | asf20 | 864 |
package com.zp.bean.psychological;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define service information java bean for web services return... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ResultServiceVo.java | Java | asf20 | 906 |
package com.zp.bean.psychological;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define base ervice information java bean for web services re... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ResultBaseServiceVo.java | Java | asf20 | 789 |
package com.zp.bean.psychological;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
/**
* define role java bean for web services return which include ... | zzyyp | trunk/zp/src/com/zp/bean/psychological/ResultOrganizationVo.java | Java | asf20 | 947 |
package com.zp.bean.paper;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zp.bean.common.ResultCommonVo;
import com.zp.domain.Paper;
/**
* define paper java bean for web services ... | zzyyp | trunk/zp/src/com/zp/bean/paper/ResultPaperVo.java | Java | asf20 | 909 |