1 19 20 package org.netbeans.modules.httpserver; 21 22 import java.util.EventObject ; 23 import java.net.InetAddress ; 24 25 31 public class GrantAccessEvent extends EventObject { 32 33 private boolean granted = false; 34 private InetAddress clientAddress; 35 private String resource; 36 37 43 GrantAccessEvent(Object source, InetAddress clientAddress, String resource) { 44 super (source); 45 this.clientAddress = clientAddress; 46 this.resource = resource; 47 } 48 49 52 public InetAddress getClientAddress () { 53 return clientAddress; 54 } 55 56 57 public String getResource() { 58 return resource; 59 } 60 61 64 public void grantAccess () { 65 granted = true; 66 } 67 68 71 boolean isGranted () { 72 return granted; 73 } 74 } 75 | Popular Tags |