public class HttpRequest extends Request
connection| 构造器和说明 |
|---|
HttpRequest(String url,
Properties serverConfig,
boolean isInternal) |
HttpRequest(String aScheme,
Socket aConnection,
Properties serverConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map |
createQueryMap(String query) |
String |
createUrl(String absolutePath) |
String |
getConnectionHeader() |
String |
getContentType() |
Map<String,String> |
getCookie() |
HttpHeaders |
getHeaders() |
int |
getMajorVersion() |
String |
getMethod() |
int |
getMinorVersion() |
ognl.OgnlContext |
getOgnlContext() |
String |
getParameter(String key) |
Map |
getParameterMap() |
Set |
getParameterNames() |
String |
getPath() |
byte[] |
getPostData() |
String |
getProperty(String key) |
String |
getProtocol() |
String |
getQuery() |
String |
getRequestHeader(String key) |
String |
getRequestHeader(String key,
String defaultValue) |
Integer |
getRequestId() |
String |
getScheme() |
Map |
getSession() |
long |
getTimestamp() |
String |
getUrl() |
boolean |
isKeepAlive() |
boolean |
isProtocolVersionLessThan(int aMajor,
int aMinor) |
void |
parseUrl(String aUrl) |
boolean |
readRequest(InputStream aStream) |
FileInputStream |
readStream(InputStream aStream) |
String |
serverUrl() |
void |
setSession(Map session) |
String |
toString() |
getLocalAddr, getLocalPort, getProperty, getRemoteAddr, getRemotePort, isInternal, putProperty, setIsInternalpublic HttpRequest(String aScheme, Socket aConnection, Properties serverConfig)
public HttpRequest(String url, Properties serverConfig, boolean isInternal)
public FileInputStream readStream(InputStream aStream) throws IOException
IOExceptionpublic boolean readRequest(InputStream aStream) throws IOException
IOExceptionpublic Integer getRequestId()
public void parseUrl(String aUrl)
public String getMethod()
public String getUrl()
public String getQuery()
public String getContentType()
public Map getParameterMap()
public ognl.OgnlContext getOgnlContext()
public String getPath()
public Set getParameterNames()
public String getScheme()
public String getProtocol()
public byte[] getPostData()
public boolean isKeepAlive()
public int getMajorVersion()
public int getMinorVersion()
public String getConnectionHeader()
public long getTimestamp()
public HttpHeaders getHeaders()
public String serverUrl()
public String createUrl(String absolutePath) throws IOException
IOExceptionpublic boolean isProtocolVersionLessThan(int aMajor,
int aMinor)
public Map getSession()
public void setSession(Map session)
Copyright © 2025 onecode. All rights reserved.