1 23 24 package com.sun.enterprise.security.jauth; 25 26 import javax.servlet.http.HttpServletRequest ; 27 import javax.servlet.http.HttpServletResponse ; 28 29 56 public class HttpServletAuthParam implements AuthParam { 57 58 private HttpServletRequest request; 59 private HttpServletResponse response; 60 63 69 public HttpServletAuthParam(HttpServletRequest request, 70 HttpServletResponse response) { 71 this.request = request; 72 this.response = response; 73 } 74 75 80 public HttpServletRequest getRequest() { 81 return this.request; 82 } 83 84 89 public HttpServletResponse getResponse() { 90 return this.response; 91 } 92 93 103 public void setResponse(HttpServletResponse response) { 104 if (response == null) { 105 throw new IllegalArgumentException ("invalid null response"); 106 } 107 108 if (this.response == null) { 109 this.response = response; 110 } 111 } 112 113 120 124 131 public String getOperation() { 132 return null; 133 } 134 } 135 | Popular Tags |