|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xecure.servlet.XecureHttpServletRequest
ÀÌ Å¬·¡½º´Â HttpServletRequest Interface ¸¦ ±¸ÇöÇÑ Å¬·¡½ºÀÌ´Ù. XecureWebÀ» Àû¿ëÇÑ ¼ºí¸´¿¡ doPost, doGet ÇÔ¼öÀÇ ÆÄ¶ó¹ÌÅÍ·Î Àü´ÞµÇ¸ç, Ŭ¶óÀÌ¾ðÆ®·Î ºÎÅÍ Àü´ÞµÈ ¾ÏÈ£ÈµÈ form µ¥ÀÌŸ¸¦ º¹È£È ÇÏ¿© ¸®ÅϽÃÄÑÁØ´Ù. °¢ ÇÔ¼öµéÀº HttpServletRequest Interface ¿¡ Á¤ÀÇµÈ ¿ªÇÒÀ» ¸ðµÎ ¼öÇàÇÑ´Ù.
Field Summary | |
javax.servlet.http.HttpServletRequest |
req
¼ºí¸´ ¿£ÁøÀ¸·Î ºÎÅÍ Àü´Þ¹ÞÀº HttpServletRequest Object |
Constructor Summary | |
XecureHttpServletRequest()
|
|
XecureHttpServletRequest(XecureSession xecureSession,
javax.servlet.http.HttpServletRequest req)
XecureHttpServletRequest Constructor |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String param)
Returns the value of the named attribute of the request, or null if the attribute does not exist. |
java.lang.String |
getAuthType()
Gets the authentication scheme of this request. |
java.lang.String |
getCharacterEncoding()
Returns the character set encoding for the input of this request. |
int |
getContentLength()
Returns the size of the request entity data, or -1 if not known. |
java.lang.String |
getContentType()
Returns the Internet Media Type of the request entity data, or null if not known. |
javax.servlet.http.Cookie[] |
getCookies()
Gets the array of cookies found in this request. |
long |
getDateHeader(java.lang.String name)
Gets the value of the requested date header field of this request. |
java.lang.String |
getHeader(java.lang.String name)
Gets the value of the requested header field of this request. |
java.util.Enumeration |
getHeaderNames()
Gets the header names for this request. |
javax.servlet.ServletInputStream |
getInputStream()
Returns an input stream for reading binary data in the request body. |
int |
getIntHeader(java.lang.String name)
Gets the value of the specified integer header field of this request. |
java.lang.String |
getMethod()
Gets the HTTP method (for example, GET, POST, PUT) with which this request was made. |
java.lang.String |
getParameter(java.lang.String name)
Returns a string containing the lone value of the specified parameter, or null if the parameter does not exist. |
java.util.Enumeration |
getParameterNames()
º¹È£ÈµÈ ParameterÀÇ nameµéÀ» ¾ò¾î¿Â´Ù. |
java.lang.String |
getParameterValue(java.lang.String name)
º¹È£ÈµÈ Parameter °ªÀ» ¾ò¾î¿Â´Ù. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the values of the specified parameter for the request as an array of strings, or null if the named parameter does not exist. |
java.lang.String |
getPathInfo()
Gets any optional extra path information following the servlet path of this request's URI, but immediately preceding its query string. |
java.lang.String |
getPathTranslated()
Gets any optional extra path information following the servlet path of this request's URI, but immediately preceding its query string, and translates it to a real path. |
java.lang.String |
getProtocol()
Returns the protocol and version of the request as a string of the form <protocol>/<major version>.<minor
version> . |
java.lang.String |
getQueryString()
Gets any query string that is part of the HTTP request URI. |
java.io.BufferedReader |
getReader()
Returns a buffered reader for reading text in the request body. |
java.lang.String |
getRealPath(java.lang.String param)
Applies alias rules to the specified virtual path and returns the corresponding real path, or null if the translation can not be performed for any reason. |
java.lang.String |
getRemoteAddr()
Returns the IP address of the agent that sent the request. |
java.lang.String |
getRemoteHost()
Returns the fully qualified host name of the agent that sent the request. |
java.lang.String |
getRemoteUser()
Gets the name of the user making this request. |
java.lang.String |
getRequestedSessionId()
Gets the session id specified with this request. |
java.lang.String |
getRequestURI()
Gets, from the first line of the HTTP request, the part of this request's URI that is to the left of any query string. |
java.lang.String |
getScheme()
Returns the scheme of the URL used in this request, for example "http", "https", or "ftp". |
java.lang.String |
getServerName()
Returns the host name of the server that received the request. |
int |
getServerPort()
Returns the port number on which this request was received. |
java.lang.String |
getServletPath()
Gets the part of this request's URI that refers to the servlet being invoked. |
javax.servlet.http.HttpSession |
getSession(boolean create)
Gets the current valid session associated with this request, if create is false or, if necessary, creates a new session for the request, if create is true. |
int |
getXecureAuthType()
ÇöÀç ¼¼¼ÇÀÇ ÀÎÁõ¹æ½ÄÀ» ¸®ÅÏÇÑ´Ù. 0 : ÀÍ¸í ¿¬°á, 1 : ÀÎÁõ¼ ±â¹Ý ¿¬°á |
XecureSession |
getXecureSession()
ÇöÀç ¼¼¼ÇÀÇ XecureSession object reference ¸¦ ¸®ÅÏÇÑ´Ù. |
java.lang.String |
getXecureSessionId()
ÇöÀç ¼¼¼ÇÀÇ ¼¼¼Ç ID ¸¦ ¸®ÅÏÇÑ´Ù. |
Certificate |
getXecureUserCert()
»ç¿ëÀÚ ÀÎÁõ¼ ±â¹Ý SSL ¼¼¼ÇÀÌ ÀÌ·ç¾î Á³À» °æ¿ì ÀÎÁõµÈ »ç¿ëÀÚÀÇ Certificate object ¸¦ ¸®ÅÏÇÑ´Ù. |
java.lang.String |
getXecureUserId()
ÇöÀç ¼¼¼ÇÀÇ »ç¿ëÀÚ ¾ÆÀ̵𸦠¸®ÅÏÇÑ´Ù. |
boolean |
isRequestedSessionIdFromCookie()
Checks whether the session id specified by this request came in as a cookie. |
boolean |
isRequestedSessionIdFromUrl()
Checks whether the session id specified by this request came in as part of the URL. |
boolean |
isRequestedSessionIdValid()
Checks whether this request is associated with a session that is valid in the current session context. |
void |
setCharacterEncoding(java.lang.String env)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public javax.servlet.http.HttpServletRequest req
Constructor Detail |
public XecureHttpServletRequest()
public XecureHttpServletRequest(XecureSession xecureSession, javax.servlet.http.HttpServletRequest req)
xecureSession
- XecureSession objectreq
- ¼ºí¸´ ¿£ÁøÀ¸·Î ºÎÅÍ Àü´ÞµÈ HttpServletRequest objectMethod Detail |
public void setCharacterEncoding(java.lang.String env) throws java.io.UnsupportedEncodingException
public java.lang.String getParameterValue(java.lang.String name)
name
- Parameter namepublic java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter whose value is required.getParameterValues(java.lang.String)
public java.lang.String[] getParameterValues(java.lang.String name)
name
- the name of the parameter whose value is required.ServletRequest.getParameter(java.lang.String)
public java.util.Enumeration getParameterNames()
public java.lang.String getQueryString()
public int getContentLength()
public Certificate getXecureUserCert()
Certificate
public java.lang.String getXecureUserId()
public java.lang.String getXecureSessionId()
public int getXecureAuthType()
public XecureSession getXecureSession()
public javax.servlet.http.Cookie[] getCookies()
public java.lang.String getMethod()
public java.lang.String getRequestURI()
First line of HTTP request Return from getRequestURI
POST /some/path.html HTTP/1.1 /some/path.html GET http://foo.bar/a.html HTTP/1.0 http://foo.bar/a.html HEAD /xyz?a=b HTTP/1.1 /xyz
To reconstruct a URL with a URL scheme and host, use the method javax.servlet.http.HttpUtils.getRequestURL, which returns a StringBuffer.
javax.servlet.http.HttpUtils#getRequestURL
public java.lang.String getServletPath()
public java.lang.String getPathInfo()
public java.lang.String getPathTranslated()
public java.lang.String getRemoteUser()
public java.lang.String getAuthType()
public java.lang.String getHeader(java.lang.String name)
name
- the String containing the name of the requested
header fieldpublic int getIntHeader(java.lang.String name)
name
- the String containing the name of the requested
header fieldpublic long getDateHeader(java.lang.String name)
name
- the String containing the name of the requested
header fieldpublic java.util.Enumeration getHeaderNames()
public javax.servlet.http.HttpSession getSession(boolean create)
Note: to ensure the session is properly maintained, the servlet developer must call this method (at least once) before any output is written to the response.
Additionally, application-writers need to be aware that newly
created sessions (that is, sessions for which
HttpSession.isNew
returns true) do not have any
application-specific state.
public java.lang.String getRequestedSessionId()
isRequestedSessionIdValid()
public boolean isRequestedSessionIdValid()
getSession
method.getRequestedSessionId()
,
HttpSessionContext
,
getSession(boolean)
public boolean isRequestedSessionIdFromCookie()
getSession
method.)getSession(boolean)
public boolean isRequestedSessionIdFromUrl()
getSession
method.)getSession(boolean)
public java.lang.String getContentType()
public java.lang.String getProtocol()
<protocol>/<major version>.<minor
version>
. Same as the CGI variable SERVER_PROTOCOL.public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public java.lang.String getRemoteAddr()
public java.lang.String getRemoteHost()
public java.lang.String getRealPath(java.lang.String param)
param
- the virtual path to be translated to a real pathpublic javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
getReader()
public java.lang.Object getAttribute(java.lang.String param)
param
- the name of the attribute whose value is requiredpublic java.io.BufferedReader getReader() throws java.io.IOException
getInputStream()
public java.lang.String getCharacterEncoding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |