Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Äêµ×ÊÕ²ØÏµÁÐ Java Web¹¤¾ßCookieSupport

/*
* CookieSupport.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
package org.lambdasoft.web.support;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.lambdasoft.utils.StringUtils;
/**
* @author TangLei <justinlei@gmail.com>
* @date 2008-12-17
*/
public class CookieSupport {
private CookieSupport() {
}
/**
* дcookies
*
* @param response
* @param cookieParams
* @param maxAge
*/
public static final void writeCookies(HttpServletResponse response,
Map<String, String> cookieParams, int maxAge) {
if (cookieParams == null || cookieParams.size() == 0)
return;
Set<String> keySet = cookieParams.keySet();
for (String key : keySet) {
Cookie cookie = new Cookie(key, cookieParams.get(key));
cookie.setMaxAge(maxAge);
response.addCookie(cookie);
}
}

/**
* ɾ³ýËùÓеÄcookies
* @param request
* @param response
*/
public static final void removeAllCookies(HttpServletRequest request,HttpServletResponse response) {
Cookie[] cookies = request.getCookies();
if(cookies == null || cookies.length == 0)


Ïà¹ØÎĵµ£º

javaÄÚ´æÐ¹Â¶

ºÜ¶àÈËÔÚ̸ÂÛÄÚ´æÐ¹Â¶ÎÊÌ⣬µ±È»¶ÔÓÚc/c++À´Ëµ£¬Õâ¸öÓ¦¸ÃÊÇÀϵôÑÀµÄÎÊÌ⣬µ«ÊǺܶàJavaÈËÔ±Ò²Ô½À´Ô½¶àµÃÌÖÂÛÕâ¸öÎÊÌ⣬ÎÒÕâÀïд¸öС½á£¬Ï£Íû¶Ô´ó¼ÒÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ¡£
¡¡¡¡ÄÚ´æÐ¹Â©µÄ¿®Äî
¡¡¡¡1.c/c++ÊdzÌÐòÔ±×Ô¼º¹ÜÀíÄڴ棬JavaÄÚ´æÊÇÓÉGC×Ô¶¯»ØÊյġ£
¡¡¡¡ÎÒËäÈ»²»ÊǺÜÊìϤC++£¬²»¹ýÕâ¸öÓ¦¸ÃûÓз¸³£Ê¶ÐÔ´íÎó°É¡£
¡¡¡ ......

JAVAĿ¼ѡÔñ¿òµÄ½â¾ö°ì·¨

FileDialogÖ»ÄÜÑ¡ÔñÎļþ¶ø²»ÄÜÑ¡ÔñÎļþ¼Ð¡£JFileChooserÓÖÌ«´ó£¬²»Ì«ºÃ¿´£¬¹Äµ·Á˺ÃÒ»»áÖÕÓÚ½â¾öÁË¡£
¼Ç¼һϹؼü²¿·Ö´úÂ룬ÒÔ±¸²éÓá£
final JButton choose=new JButton("Ñ¡Ôñ´æ´¢ÎļþĿ¼");
final JTextField dir=new JTextField();

final JFileChooser chooser=new JFileChooser();
chooser.setFileSe ......

Java Ö® Corba

¿´ÁËһƪÈëÃÅÎÄÕ£¬ºÃÏó²»´í£¬ÊÕ¼¯Ò»Ï£º
http://blog.csdn.net/njchenyi/archive/2007/09/12/1782252.aspx
ApacheµÄSOAP over CorbaµÄÎÄÕ£¬µ«Ê¹ÓÃÁËApache SOAP£¬Õâ¸ö±È½ÏÀÏÁË£¬ÏÖÔÚÓиüеÄAxis 2£¬ÀÁµÃÕÒSOAP API PackageÁË¡£
http://www.scottnichol.com/apachesoapcorba.htm
Ñо¿Ò»ÏÂCorba to SOAP Bridge£¬Óгɹ ......

Äêµ×ÊÕ²ØÏµÁÐ Java°²È«¹¤¾ß,Éú³ÉMD5,Base64,UUID


/*
* EncryptUtils.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ