PHP 클래스 AppserverIo\Appserver\ServletEngine\Http\Request

상속: implements AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface, implements AppserverIo\Psr\Context\ContextInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array Array that contains the attributes of this context.
$authType string The request's authentication type.
$authenticationManager AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The session manager instance.
$baseModifier string Base modifier which allows for base path generation within rewritten URL environments.
$bodyStream resource The body content stream resource.
$context AppserverIo\Psr\Context\ContextInterface The request context instance.
$contextPath string The application context name.
$dispatched boolean Whether or not the request has been dispatched.
$documentRoot string The document root.
$handlers array The available request handlers.
$httpRequest AppserverIo\Psr\HttpMessage\RequestInterface The HTTP request instance.
$parts array The uploaded part instances.
$pathInfo string The absolute path info.
$queryString string The query string.
$requestHandler AppserverIo\Appserver\ServletEngine\Http\RequestContextInterface The request context.
$requestUri string The request URI.
$requestUrl string The request URL.
$requestedSessionId string The new session-ID.
$requestedSessionName string The new session name.
$response AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance.
$serverName string The server name.
$serverVars array The server variables.
$servletPath string The path (URI) to the servlet.
$sessionManager AppserverIo\Appserver\ServletEngine\SessionManagerInterface The session manager instance.
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal of the authenticated user or NULL if the user has not been authenticated.

공개 메소드들

메소드 설명
__construct ( ) Initializes the request object with the default properties.
addCookie ( AppserverIo\Psr\HttpMessage\CookieInterface $cookie ) : void Adds the passed cookie to this request.
addHeader ( string $name, string $value ) : void Adds a header information got from connection.
addPart ( AppserverIo\Psr\HttpMessage\PartInterface $part, string $name = null ) : void Adds a part to the parts collection.
authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean Use the container login mechanism configured for the servlet context to authenticate the user making this request. This method may modify and commit the passed servlet response.
getAttribute ( string $key ) : mixed Returns the value with the passed name from the context.
getAuthType ( ) : string | null Return's the authentication type.
getAuthenticationManager ( ) : AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface Return's the authentication manager instance.
getBaseModifier ( ) : string Returns the base modifier which allows for base path generation within rewritten URL environments
getBodyContent ( ) : string Return content
getBodyStream ( ) : resource Returns the body stream as a resource.
getContext ( ) : AppserverIo\Psr\Context\ContextInterface Returns the context that allows access to session and server information.
getContextPath ( ) : string Returns the application context name (application name prefixed with a slash) for the actual request.
getCookie ( string $cookieName ) : AppserverIo\Psr\HttpMessage\CookieInterface Returns the value of the cookie with the passed name.
getCookies ( ) : array Return's the array with cookies.
getDocumentRoot ( ) : string Returns the absolut path to the document root.
getHandlers ( ) : array Returns the available file handlers registered by the webserver configuration.
getHeader ( string $name ) : string | null Returns header info by given name
getHeaders ( ) : array Returns headers data
getHttpPartInstance ( ) : AppserverIo\Psr\HttpMessage\PartInterface Returns a part instance
getHttpRequest ( ) : AppserverIo\Psr\HttpMessage\RequestInterface Returns the Http request instance.
getMethod ( ) : string Returns request method
getParam ( string $name ) : string | null Returns the parameter with the passed name if available or null if the parameter not exists.
getParameter ( string $name, integer $filter = FILTER_SANITIZE_STRING ) : string | null Returns the parameter with the passed name if available or null if the parameter not exists.
getParameterMap ( ) : array Returns an array with all request parameters.
getPart ( string $name ) : AppserverIo\Http\HttpPart Returns a part object by given name
getParts ( ) : array Returns the parts collection as array
getPathInfo ( ) : string Returns the absolute path info started from the context path.
getProposedSessionId ( ) : string Return the session identifier proposed by the actual configuration and request state.
getQueryString ( ) : string | null Returns query string of the actual request.
getRemoteUser ( ) : AppserverIo\Lang\String | null Return's the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
getRequestHandler ( ) : AppserverIo\Appserver\ServletEngine\Http\RequestContextInterface Returns the context that allows access to session and server information.
getRequestUri ( ) : string Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
getRequestUrl ( ) : string Returns the URL the client used to make the request.
getRequestedSessionId ( ) : string Return the session identifier included in this request, if any.
getRequestedSessionName ( ) : string Return the session name included in this request, if any.
getResponse ( ) : AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface Returns the servlet response bound to this request.
getServerName ( ) : string Returns the server name.
getServerVar ( string $name ) : mixed Returns the server variable with the requested name.
getServerVars ( ) : array Returns the array with the server variables.
getServletPath ( ) : string Returns the path to the servlet used to handle this request.
getSession ( boolean $create = false ) : null | AppserverIo\Psr\Servlet\Http\HttpSessionInterface Returns the session for this request.
getSessionManager ( ) : AppserverIo\Appserver\ServletEngine\SessionManagerInterface Return's the session manager instance.
getUri ( ) : string Returns request uri
getUserPrincipal ( ) : AppserverIo\Psr\Security\PrincipalInterface | null Return's a PrincipalInterface object containing the name of the current authenticated user.
getVersion ( ) : string Returns protocol version
hasCookie ( string $cookieName ) : boolean Returns true if the request has a cookie header with the passed name, else false.
hasHeader ( string $name ) : boolean Checks if header exists by given name.
hasParameter ( string $name ) : boolean Queries whether the request contains a parameter or not.
init ( ) : void Initializes the servlet request with the data from the injected HTTP request instance.
injectAuthenticationManager ( AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface $authenticationManager ) : void Injects the authentication manager instance.
injectContext ( AppserverIo\Psr\Context\ContextInterface $context ) : void Injects the context that allows access to session and server information.
injectHandlers ( array $handlers ) : void Injects the available file handlers registered by the webserver configuration.
injectHttpRequest ( AppserverIo\Psr\HttpMessage\RequestInterface $httpRequest ) : void Injects the Http request instance.
injectResponse ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $response ) : void Injects the servlet response bound to this request.
injectServerVars ( array $serverVars ) : void Injects the server variables.
injectSessionManager ( AppserverIo\Appserver\ServletEngine\SessionManagerInterface $sessionManager ) : void Injects the session manager instance.
isDispatched ( ) : boolean Sets the flag that shows if the request has already been dispatched.
isUserInRole ( string $role ) : boolean Return_s a boolean indicating whether the authenticated user is included in the specified logical "role".
login ( string $username, string $password ) : void Validate the provided username and password in the password validation realm used by the web container login mechanism configured for the ServletContext.
logout ( ) : void Establish null as the value returned when getUserPrincipal, getRemoteUser, and getAuthType is called on the request.
prepare ( ) : void Prepares the request instance.
setAttribute ( string $key, mixed $value ) : void Adds the attribute with the passed name to this context.
setAuthType ( string | null $authType = null ) : void Set's the passed authentication type.
setBaseModifier ( string $baseModifier ) : null Set the base modifier
setBodyStream ( resource $bodyStream ) : void Resets the stream resource pointing to body content.
setContextPath ( string $contextPath ) : void Sets the application context name (application name prefixed with a slash) for the actual request.
setDispatched ( boolean $dispatched = true ) : void Sets the flag to mark the request dispatched.
setDocumentRoot ( string $documentRoot ) : void Sets the absolute path to the document root.
setHeaders ( array $headers ) : void Set headers data
setMethod ( string $method ) : void Sets the method to be performed on the resource identified by the Request-URI.
setParameterMap ( array $parameterMap ) : void Returns an array with all request parameters.
setPathInfo ( string $pathInfo ) : void Sets the absolute path info started from the context path.
setQueryString ( string $queryString ) : void Sets the query string of the actual request.
setRequestUri ( string $requestUri ) : void Sets the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
setRequestUrl ( string $requestUrl ) : void Sets the URL the client used to make the request.
setRequestedSessionId ( string $requestedSessionId ) : void Set the requested session ID for this request. This is normally called by the HTTP Connector, when it parses the request headers.
setRequestedSessionName ( string $requestedSessionName ) : void Set the requested session name for this request.
setServerName ( string $serverName ) : void Sets the server name.
setServletPath ( string $servletPath ) : void Sets the path to the servlet used to handle this request.
setUri ( string $uri ) : void Sets the URI.
setUserPrincipal ( AppserverIo\Psr\Security\PrincipalInterface $userPrincipal = null ) : void Set's the user principal for this request.
setVersion ( string $version ) : void Set protocol version

메소드 상세

__construct() 공개 메소드

Initializes the request object with the default properties.
public __construct ( )

addCookie() 공개 메소드

Adds the passed cookie to this request.
public addCookie ( AppserverIo\Psr\HttpMessage\CookieInterface $cookie ) : void
$cookie AppserverIo\Psr\HttpMessage\CookieInterface The cookie to add
리턴 void

addHeader() 공개 메소드

Adds a header information got from connection.
public addHeader ( string $name, string $value ) : void
$name string The header name
$value string The headers value
리턴 void

addPart() 공개 메소드

Adds a part to the parts collection.
public addPart ( AppserverIo\Psr\HttpMessage\PartInterface $part, string $name = null ) : void
$part AppserverIo\Psr\HttpMessage\PartInterface A form part object
$name string A manually defined name
리턴 void

authenticate() 공개 메소드

Use the container login mechanism configured for the servlet context to authenticate the user making this request. This method may modify and commit the passed servlet response.
public authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response
리턴 boolean TRUE when non-null values were or have been established as the values returned by getRemoteUser, else FALSE

getAttribute() 공개 메소드

Returns the value with the passed name from the context.
public getAttribute ( string $key ) : mixed
$key string The key of the value to return from the context.
리턴 mixed The requested attribute

getAuthType() 공개 메소드

Return's the authentication type.
public getAuthType ( ) : string | null
리턴 string | null The authentication type

getAuthenticationManager() 공개 메소드

Return's the authentication manager instance.
public getAuthenticationManager ( ) : AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface
리턴 AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance

getBaseModifier() 공개 메소드

Returns the base modifier which allows for base path generation within rewritten URL environments
public getBaseModifier ( ) : string
리턴 string

getBodyContent() 공개 메소드

Return content
public getBodyContent ( ) : string
리턴 string $content

getBodyStream() 공개 메소드

Returns the body stream as a resource.
public getBodyStream ( ) : resource
리턴 resource The body stream

getContext() 공개 메소드

Returns the context that allows access to session and server information.
public getContext ( ) : AppserverIo\Psr\Context\ContextInterface
리턴 AppserverIo\Psr\Context\ContextInterface The request context

getContextPath() 공개 메소드

Returns the application context name (application name prefixed with a slash) for the actual request.
public getContextPath ( ) : string
리턴 string The application context name

getCookie() 공개 메소드

Returns the value of the cookie with the passed name.
public getCookie ( string $cookieName ) : AppserverIo\Psr\HttpMessage\CookieInterface
$cookieName string The name of the cookie to return
리턴 AppserverIo\Psr\HttpMessage\CookieInterface The cookie instance

getCookies() 공개 메소드

Return's the array with cookies.
public getCookies ( ) : array
리턴 array The array with cookies

getDocumentRoot() 공개 메소드

Returns the absolut path to the document root.
public getDocumentRoot ( ) : string
리턴 string The document root

getHandlers() 공개 메소드

Returns the available file handlers registered by the webserver configuration.
public getHandlers ( ) : array
리턴 array The file handlers

getHeader() 공개 메소드

Returns header info by given name
public getHeader ( string $name ) : string | null
$name string The header key to name
리턴 string | null

getHeaders() 공개 메소드

Returns headers data
public getHeaders ( ) : array
리턴 array

getHttpPartInstance() 공개 메소드

Returns a part instance
public getHttpPartInstance ( ) : AppserverIo\Psr\HttpMessage\PartInterface
리턴 AppserverIo\Psr\HttpMessage\PartInterface

getHttpRequest() 공개 메소드

Returns the Http request instance.
public getHttpRequest ( ) : AppserverIo\Psr\HttpMessage\RequestInterface
리턴 AppserverIo\Psr\HttpMessage\RequestInterface The Http request instance

getMethod() 공개 메소드

Returns request method
public getMethod ( ) : string
리턴 string

getParam() 공개 메소드

Returns the parameter with the passed name if available or null if the parameter not exists.
public getParam ( string $name ) : string | null
$name string The name of the parameter to return
리턴 string | null The requested value

getParameter() 공개 메소드

Returns the parameter with the passed name if available or null if the parameter not exists.
public getParameter ( string $name, integer $filter = FILTER_SANITIZE_STRING ) : string | null
$name string The name of the parameter to return
$filter integer The filter to use
리턴 string | null

getParameterMap() 공개 메소드

Returns an array with all request parameters.
public getParameterMap ( ) : array
리턴 array The array with the request parameters

getPart() 공개 메소드

Returns a part object by given name
public getPart ( string $name ) : AppserverIo\Http\HttpPart
$name string The name of the form part
리턴 AppserverIo\Http\HttpPart

getParts() 공개 메소드

Returns the parts collection as array
public getParts ( ) : array
리턴 array A collection of HttpPart objects

getPathInfo() 공개 메소드

Returns the absolute path info started from the context path.
public getPathInfo ( ) : string
리턴 string The absolute path info

getProposedSessionId() 공개 메소드

Return the session identifier proposed by the actual configuration and request state.
public getProposedSessionId ( ) : string
리턴 string The session identifier proposed for this request

getQueryString() 공개 메소드

Returns query string of the actual request.
public getQueryString ( ) : string | null
리턴 string | null The query string of the actual request

getRemoteUser() 공개 메소드

Return's the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
public getRemoteUser ( ) : AppserverIo\Lang\String | null
리턴 AppserverIo\Lang\String | null A string specifying the login of the user making this request, or null if the user login is not known

getRequestHandler() 공개 메소드

Returns the context that allows access to session and server information.
public getRequestHandler ( ) : AppserverIo\Appserver\ServletEngine\Http\RequestContextInterface
리턴 AppserverIo\Appserver\ServletEngine\Http\RequestContextInterface The request context

getRequestUri() 공개 메소드

Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
public getRequestUri ( ) : string
리턴 string The request URI

getRequestUrl() 공개 메소드

Returns the URL the client used to make the request.
public getRequestUrl ( ) : string
리턴 string The request URL

getRequestedSessionId() 공개 메소드

Return the session identifier included in this request, if any.
public getRequestedSessionId ( ) : string
리턴 string The session identifier included in this request

getRequestedSessionName() 공개 메소드

Return the session name included in this request, if any.
public getRequestedSessionName ( ) : string
리턴 string The session name included in this request

getResponse() 공개 메소드

Returns the servlet response bound to this request.
public getResponse ( ) : AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface
리턴 AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The response instance

getServerName() 공개 메소드

Returns the server name.
public getServerName ( ) : string
리턴 string The server name

getServerVar() 공개 메소드

Returns the server variable with the requested name.
public getServerVar ( string $name ) : mixed
$name string The name of the server variable to be returned
리턴 mixed The requested server variable

getServerVars() 공개 메소드

Returns the array with the server variables.
public getServerVars ( ) : array
리턴 array The array with the server variables

getServletPath() 공개 메소드

Returns the path to the servlet used to handle this request.
public getServletPath ( ) : string
리턴 string The relative path to the servlet

getSession() 공개 메소드

Returns the session for this request.
public getSession ( boolean $create = false ) : null | AppserverIo\Psr\Servlet\Http\HttpSessionInterface
$create boolean TRUE to create a new session, else FALSE
리턴 null | AppserverIo\Psr\Servlet\Http\HttpSessionInterface The session instance

getSessionManager() 공개 메소드

Return's the session manager instance.
public getSessionManager ( ) : AppserverIo\Appserver\ServletEngine\SessionManagerInterface
리턴 AppserverIo\Appserver\ServletEngine\SessionManagerInterface The session manager instance

getUri() 공개 메소드

Returns request uri
public getUri ( ) : string
리턴 string

getUserPrincipal() 공개 메소드

Return's a PrincipalInterface object containing the name of the current authenticated user.
public getUserPrincipal ( ) : AppserverIo\Psr\Security\PrincipalInterface | null
리턴 AppserverIo\Psr\Security\PrincipalInterface | null The user principal

getVersion() 공개 메소드

Returns protocol version
public getVersion ( ) : string
리턴 string

hasCookie() 공개 메소드

Returns true if the request has a cookie header with the passed name, else false.
public hasCookie ( string $cookieName ) : boolean
$cookieName string Name of the cookie header to be checked
리턴 boolean true if the request has the cookie, else false

hasHeader() 공개 메소드

Checks if header exists by given name.
public hasHeader ( string $name ) : boolean
$name string The header name to check
리턴 boolean

hasParameter() 공개 메소드

Queries whether the request contains a parameter or not.
public hasParameter ( string $name ) : boolean
$name string The name of the param we're query for
리턴 boolean TRUE if the parameter is available, else FALSE

init() 공개 메소드

Initializes the servlet request with the data from the injected HTTP request instance.
public init ( ) : void
리턴 void

injectAuthenticationManager() 공개 메소드

Injects the authentication manager instance.
public injectAuthenticationManager ( AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface $authenticationManager ) : void
$authenticationManager AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance
리턴 void

injectContext() 공개 메소드

Injects the context that allows access to session and server information.
public injectContext ( AppserverIo\Psr\Context\ContextInterface $context ) : void
$context AppserverIo\Psr\Context\ContextInterface The request context instance
리턴 void

injectHandlers() 공개 메소드

Injects the available file handlers registered by the webserver configuration.
public injectHandlers ( array $handlers ) : void
$handlers array The available file handlers
리턴 void

injectHttpRequest() 공개 메소드

Injects the Http request instance.
public injectHttpRequest ( AppserverIo\Psr\HttpMessage\RequestInterface $httpRequest ) : void
$httpRequest AppserverIo\Psr\HttpMessage\RequestInterface The Http request instance
리턴 void

injectResponse() 공개 메소드

Injects the servlet response bound to this request.
public injectResponse ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $response ) : void
$response AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance
리턴 void

injectServerVars() 공개 메소드

Injects the server variables.
public injectServerVars ( array $serverVars ) : void
$serverVars array The server variables
리턴 void

injectSessionManager() 공개 메소드

Injects the session manager instance.
public injectSessionManager ( AppserverIo\Appserver\ServletEngine\SessionManagerInterface $sessionManager ) : void
$sessionManager AppserverIo\Appserver\ServletEngine\SessionManagerInterface The session manager instance
리턴 void

isDispatched() 공개 메소드

Sets the flag that shows if the request has already been dispatched.
public isDispatched ( ) : boolean
리턴 boolean TRUE if the request has already been dispatched, else FALSE

isUserInRole() 공개 메소드

Return_s a boolean indicating whether the authenticated user is included in the specified logical "role".
public isUserInRole ( string $role ) : boolean
$role string The role we want to test for
리턴 boolean TRUE if the user has the passed role, else FALSE

login() 공개 메소드

Validate the provided username and password in the password validation realm used by the web container login mechanism configured for the ServletContext.
public login ( string $username, string $password ) : void
$username string The username to login
$password string The password used to authenticate the user
리턴 void

logout() 공개 메소드

Establish null as the value returned when getUserPrincipal, getRemoteUser, and getAuthType is called on the request.
public logout ( ) : void
리턴 void

prepare() 공개 메소드

Prepares the request instance.
public prepare ( ) : void
리턴 void

setAttribute() 공개 메소드

Adds the attribute with the passed name to this context.
public setAttribute ( string $key, mixed $value ) : void
$key string The key to add the value with
$value mixed The value to add to the context
리턴 void

setAuthType() 공개 메소드

Set's the passed authentication type.
public setAuthType ( string | null $authType = null ) : void
$authType string | null The authentication type
리턴 void

setBaseModifier() 공개 메소드

Set the base modifier
public setBaseModifier ( string $baseModifier ) : null
$baseModifier string Base modifier which allows for base path generation within rewritten URL environments
리턴 null

setBodyStream() 공개 메소드

Resets the stream resource pointing to body content.
public setBodyStream ( resource $bodyStream ) : void
$bodyStream resource The body content stream resource
리턴 void

setContextPath() 공개 메소드

Sets the application context name (application name prefixed with a slash) for the actual request.
public setContextPath ( string $contextPath ) : void
$contextPath string The application context name
리턴 void

setDispatched() 공개 메소드

Sets the flag to mark the request dispatched.
public setDispatched ( boolean $dispatched = true ) : void
$dispatched boolean TRUE if the request has already been dispatched, else FALSE
리턴 void

setDocumentRoot() 공개 메소드

Sets the absolute path to the document root.
public setDocumentRoot ( string $documentRoot ) : void
$documentRoot string The document root
리턴 void

setHeaders() 공개 메소드

Set headers data
public setHeaders ( array $headers ) : void
$headers array The headers array to set
리턴 void

setMethod() 공개 메소드

While HTTP method names are typically all uppercase characters, HTTP method names are case-sensitive and thus implementations SHOULD NOT modify the given string.
public setMethod ( string $method ) : void
$method string Case-insensitive method
리턴 void

setParameterMap() 공개 메소드

Returns an array with all request parameters.
public setParameterMap ( array $parameterMap ) : void
$parameterMap array The array with the request parameters
리턴 void

setPathInfo() 공개 메소드

Sets the absolute path info started from the context path.
public setPathInfo ( string $pathInfo ) : void
$pathInfo string The absolute path info
리턴 void

setQueryString() 공개 메소드

Sets the query string of the actual request.
public setQueryString ( string $queryString ) : void
$queryString string The query string
리턴 void

setRequestUri() 공개 메소드

Sets the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
public setRequestUri ( string $requestUri ) : void
$requestUri string The request URI
리턴 void

setRequestUrl() 공개 메소드

Sets the URL the client used to make the request.
public setRequestUrl ( string $requestUrl ) : void
$requestUrl string The request URL
리턴 void

setRequestedSessionId() 공개 메소드

Set the requested session ID for this request. This is normally called by the HTTP Connector, when it parses the request headers.
public setRequestedSessionId ( string $requestedSessionId ) : void
$requestedSessionId string The new session id
리턴 void

setRequestedSessionName() 공개 메소드

Set the requested session name for this request.
public setRequestedSessionName ( string $requestedSessionName ) : void
$requestedSessionName string The new session name
리턴 void

setServerName() 공개 메소드

Sets the server name.
public setServerName ( string $serverName ) : void
$serverName string The server name
리턴 void

setServletPath() 공개 메소드

Sets the path to the servlet used to handle this request.
public setServletPath ( string $servletPath ) : void
$servletPath string The path to the servlet
리턴 void

setUri() 공개 메소드

Sets the URI.
public setUri ( string $uri ) : void
$uri string The uri
리턴 void

setUserPrincipal() 공개 메소드

Set's the user principal for this request.
public setUserPrincipal ( AppserverIo\Psr\Security\PrincipalInterface $userPrincipal = null ) : void
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal
리턴 void

setVersion() 공개 메소드

Set protocol version
public setVersion ( string $version ) : void
$version string The http protocol version
리턴 void

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

Array that contains the attributes of this context.
protected array $attributes
리턴 array

$authType 보호되어 있는 프로퍼티

The request's authentication type.
protected string $authType
리턴 string

$authenticationManager 보호되어 있는 프로퍼티

The session manager instance.
protected AuthenticationManagerInterface,AppserverIo\Appserver\ServletEngine\Security $authenticationManager
리턴 AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface

$baseModifier 보호되어 있는 프로퍼티

Base modifier which allows for base path generation within rewritten URL environments.
protected string $baseModifier
리턴 string

$bodyStream 보호되어 있는 프로퍼티

The body content stream resource.
protected resource $bodyStream
리턴 resource

$context 보호되어 있는 프로퍼티

The request context instance.
protected ContextInterface,AppserverIo\Psr\Context $context
리턴 AppserverIo\Psr\Context\ContextInterface

$contextPath 보호되어 있는 프로퍼티

The application context name.
protected string $contextPath
리턴 string

$dispatched 보호되어 있는 프로퍼티

Whether or not the request has been dispatched.
protected bool $dispatched
리턴 boolean

$documentRoot 보호되어 있는 프로퍼티

The document root.
protected string $documentRoot
리턴 string

$handlers 보호되어 있는 프로퍼티

The available request handlers.
protected array $handlers
리턴 array

$httpRequest 보호되어 있는 프로퍼티

The HTTP request instance.
protected RequestInterface,AppserverIo\Psr\HttpMessage $httpRequest
리턴 AppserverIo\Psr\HttpMessage\RequestInterface

$parts 보호되어 있는 프로퍼티

The uploaded part instances.
protected array $parts
리턴 array

$pathInfo 보호되어 있는 프로퍼티

The absolute path info.
protected string $pathInfo
리턴 string

$queryString 보호되어 있는 프로퍼티

The query string.
protected string $queryString
리턴 string

$requestHandler 보호되어 있는 프로퍼티

The request context.
protected RequestContextInterface,AppserverIo\Appserver\ServletEngine\Http $requestHandler
리턴 AppserverIo\Appserver\ServletEngine\Http\RequestContextInterface

$requestUri 보호되어 있는 프로퍼티

The request URI.
protected string $requestUri
리턴 string

$requestUrl 보호되어 있는 프로퍼티

The request URL.
protected string $requestUrl
리턴 string

$requestedSessionId 보호되어 있는 프로퍼티

The new session-ID.
protected string $requestedSessionId
리턴 string

$requestedSessionName 보호되어 있는 프로퍼티

The new session name.
protected string $requestedSessionName
리턴 string

$response 보호되어 있는 프로퍼티

The servlet response instance.
protected HttpServletResponseInterface,AppserverIo\Psr\Servlet\Http $response
리턴 AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface

$serverName 보호되어 있는 프로퍼티

The server name.
protected string $serverName
리턴 string

$serverVars 보호되어 있는 프로퍼티

The server variables.
protected array $serverVars
리턴 array

$servletPath 보호되어 있는 프로퍼티

The path (URI) to the servlet.
protected string $servletPath
리턴 string

$sessionManager 보호되어 있는 프로퍼티

The session manager instance.
protected SessionManagerInterface,AppserverIo\Appserver\ServletEngine $sessionManager
리턴 AppserverIo\Appserver\ServletEngine\SessionManagerInterface

$userPrincipal 보호되어 있는 프로퍼티

The user principal of the authenticated user or NULL if the user has not been authenticated.
protected PrincipalInterface,AppserverIo\Psr\Security $userPrincipal
리턴 AppserverIo\Psr\Security\PrincipalInterface