1 33 34 package com.icesoft.faces.util.event.servlet; 35 36 import java.util.EventObject ; 37 38 import javax.servlet.http.HttpSession ; 39 40 45 public abstract class AbstractSessionEvent 46 extends EventObject 47 implements ContextEvent { 48 protected String iceFacesId; 49 50 64 protected AbstractSessionEvent(HttpSession source, String iceFacesId) 65 throws IllegalArgumentException { 66 super(source); 67 if (iceFacesId == null) { 68 throw new IllegalArgumentException ("iceFacesId is null"); 69 } 70 if (iceFacesId.trim().length() == 0) { 71 throw new IllegalArgumentException ("iceFacesId is empty"); 72 } 73 this.iceFacesId = iceFacesId; 74 } 75 76 81 public HttpSession getHttpSession() { 82 return (HttpSession ) source; 83 } 84 85 90 public String getICEfacesID() { 91 return iceFacesId; 92 } 93 } 94 | Popular Tags |