1 package org.kohsuke.stapler; 2 3 import org.apache.commons.beanutils.BeanUtils; 4 import org.apache.commons.beanutils.ConvertUtils; 5 6 import javax.servlet.RequestDispatcher ; 7 import javax.servlet.ServletContext ; 8 import javax.servlet.http.HttpServletRequest ; 9 import javax.servlet.http.HttpServletResponse ; 10 import java.io.IOException ; 11 import java.util.Calendar ; 12 import java.util.Date ; 13 import java.util.List ; 14 15 20 public interface StaplerRequest extends HttpServletRequest { 21 33 String getRestOfPath(); 34 35 39 ServletContext getServletContext(); 40 41 58 RequestDispatcher getView(Object it,String viewName) throws IOException ; 59 60 64 String getRootPath(); 65 66 86 List getAncestors(); 87 88 93 String getOriginalRequestURI(); 94 95 125 boolean checkIfModified(long timestampOfResource, StaplerResponse rsp); 126 127 130 boolean checkIfModified(Date timestampOfResource, StaplerResponse rsp); 131 132 135 boolean checkIfModified(Calendar timestampOfResource, StaplerResponse rsp); 136 137 153 void bindParameters( Object bean ); 154 155 166 void bindParameters( Object bean, String prefix ); 167 168 192 <T> 193 List <T> bindParametersToList( Class <T> type, String prefix ); 194 } 195 | Popular Tags |