1 15 package org.apache.tapestry.request; 16 17 import javax.servlet.http.HttpServletRequest ; 18 19 29 30 public class DecodedRequest 31 { 32 private String _scheme = "http"; 33 34 private String _serverName; 35 36 private String _requestURI; 37 38 private int _serverPort = 80; 39 40 public DecodedRequest() 41 { 42 } 43 44 49 50 public DecodedRequest(HttpServletRequest request) 51 { 52 _scheme = request.getScheme(); 53 _serverName = request.getServerName(); 54 _requestURI = request.getRequestURI(); 55 _serverPort = request.getServerPort(); 56 } 57 58 61 62 public int getServerPort() 63 { 64 return _serverPort; 65 } 66 67 70 71 public String getScheme() 72 { 73 return _scheme; 74 } 75 76 79 80 public String getServerName() 81 { 82 return _serverName; 83 } 84 85 88 89 public String getRequestURI() 90 { 91 return _requestURI; 92 } 93 94 public void setServerPort(int serverPort) 95 { 96 _serverPort = serverPort; 97 } 98 99 public void setScheme(String scheme) 100 { 101 _scheme = scheme; 102 } 103 104 public void setServerName(String serverName) 105 { 106 _serverName = serverName; 107 } 108 109 public void setRequestURI(String URI) 110 { 111 _requestURI = URI; 112 } 113 114 } | Popular Tags |