Fixed java 7 build error and sun dependency warnings
This commit is contained in:
parent
1c7406b506
commit
9fdc6f62bb
4 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package zutil.net.http.page;
|
||||
|
||||
import sun.net.www.HeaderParser;
|
||||
import zutil.Hasher;
|
||||
import zutil.log.LogUtil;
|
||||
import zutil.net.http.HttpHeader;
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public class ChatService extends ThreadedEventWorker{
|
|||
private void addRoom(String room){
|
||||
if(!rooms.containsKey(room)){
|
||||
logger.fine("New Chat Room: "+room);
|
||||
rooms.put(room, new LinkedList<>());
|
||||
rooms.put(room, new LinkedList<SocketAddress>());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ import zutil.net.http.HttpPage;
|
|||
import zutil.net.http.HttpPrintStream;
|
||||
import zutil.net.ws.*;
|
||||
import zutil.net.ws.WSReturnObject.WSValueName;
|
||||
import zutil.parser.Base64Encoder;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
|
|
@ -325,7 +326,7 @@ public class SOAPHttpPage implements HttpPage{
|
|||
if(byte[].class.isAssignableFrom(obj.getClass())){
|
||||
Element valueE = root.addElement( elementName );
|
||||
valueE.addAttribute("type", "xsd:"+ getSOAPClassName(obj.getClass()));
|
||||
String tmp = new sun.misc.BASE64Encoder().encode((byte[])obj);
|
||||
String tmp = Base64Encoder.encode((byte[])obj);
|
||||
tmp = tmp.replaceAll("\\s", "");
|
||||
valueE.setText(tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue