1 20 package org.apache.slide.projector.store; 21 22 import java.io.IOException ; 23 24 import javax.servlet.http.HttpServletRequest ; 25 26 import org.apache.slide.projector.Store; 27 28 public class RequestParameterStore implements Store { 29 protected HttpServletRequest request; 30 31 public RequestParameterStore(HttpServletRequest request) { 32 this.request = request; 33 } 34 35 public void put(String key, Object value, long timeout) throws IOException { 36 throw new IOException ("Put operation is not supported by request-parameter store!"); 37 } 38 39 public void put(String key, Object value) throws IOException { 40 throw new IOException ("Put operation is not supported by request-parameter store!"); 41 } 42 43 public Object get(String key) { 44 return request.getParameterValues(key); 45 } 46 47 public void dispose(String key) throws IOException { 48 throw new IOException ("Dispose operation is not supported by request-parameter store!"); 49 } 50 } | Popular Tags |