Java Doc for HTTPRequest.java in » Portal » Open-Portal » com » sun » portal » rproxy » connectionhandler » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
Portal
»
Open Portal
»
com.sun.portal.rproxy.connectionhandler
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.sun.portal.rproxy.connectionhandler
.HTTPRequest
HTTPRequest
public
class HTTPRequest implements
Request
,
HttpServletRequest
(Code)
This class represents a single HTTP request.
author:
Gabriel Lawrence
Field Summary
final
protected
static
String
SessionInURLDelimiter
protected
String
encodedGatewayURL
protected
static boolean
forceURLSession
protected
String
gatewayURL
protected
static
URL
httpPlatformConfURL
protected
static
String
httpPlatformConfURLString
protected
static
URL
httpsPlatformConfURL
protected
static
String
httpsPlatformConfURLString
protected
boolean
isCookieSupported
protected
String
urlSessionInfo
protected
static boolean
usePlatformConfURL
Constructor Summary
public
HTTPRequest
()
public
HTTPRequest
(
String
urlstr)
public
HTTPRequest
(
String
protocol, int dummyPort)
Method Summary
public
void
addCustomHeader
(
String
key,
String
value)
public
void
addHeader
(
String
key,
String
value)
public
void
addHeaderLine
(
String
s)
Method called by HTTPSession when construction the Request Object.
public
void
addSize
(int size)
public
boolean
getArchiveTranslate
()
public
Object
getAttribute
(
String
name)
public
Enumeration
getAttributeNames
()
public
String
getAuthType
()
public
byte[]
getCertificate
()
public
String
getCharacterEncoding
()
public
int
getContentLength
()
public
BufferedInputStream
getContentStream
()
public
String
getContentType
()
public
String
getContextPath
()
public
Cookie
[]
getCookies
()
public
long
getDateHeader
(
String
name)
public
String
getGatewayHost
()
public
int
getGatewayPort
()
public
String
getGatewayProtocol
()
public
String
getGatewayScheme
()
public
String
getGatewayURL
()
public
String
getHTTPVersion
()
public
String
getHeader
(
String
name)
public
List
getHeaderAttributeList
(
String
header)
public
Enumeration
getHeaderNames
()
public
Enumeration
getHeaders
(
String
name)
public
String
getHost
()
public
ServletInputStream
getInputStream
()
public
int
getIntHeader
(
String
name)
public
java.util.Locale
getLocale
()
public
Enumeration
getLocales
()
public
String
getMethod
()
public
Properties
getNetworkInfo
()
public
String
getObject
()
public
String
getParameter
(
String
name)
public
Enumeration
getParameterNames
()
public
String
[]
getParameterValues
(
String
name)
public
String
getPathInfo
()
public
String
getPathTranslated
()
public
String
getPort
()
public
String
getPortFromCustomUrl
(
String
knownPort)
public
String
getProtocol
()
public
String
getProtocolFromCustomUrl
(
String
knownProtocol)
public
String
getProxyHost
()
public
int
getProxyPort
()
public
String
getQueryString
()
public
BufferedReader
getReader
()
public
String
getRealPath
(
String
name)
public
String
getRemoteAddr
()
public
String
getRemoteHost
()
public
String
getRemoteUser
()
public
javax.servlet.RequestDispatcher
getRequestDispatcher
(
String
s)
public
String
getRequestHeader
(
String
header)
Method to retrieve an arbitrary header.
public
byte[]
getRequestHeaderBytes
()
public
String
getRequestURI
()
public
String
getRequestedSessionId
()
public
String
getScheme
()
public
String
getServerName
()
public
int
getServerPort
()
public
String
getServletPath
()
public
HttpSession
getSession
()
public
HttpSession
getSession
(boolean create)
public
String
getSessionID
()
public
int
getSize
()
public
String
getURI
()
public
String
getURL
()
public
String
getUnEncodedGatewayURL
()
public
boolean
getUseProxy
()
public
java.security.Principal
getUserPrincipal
()
public
boolean
isCookieSupported
()
public
boolean
isForwardCookieHost
()
public
boolean
isGatewayProtocolSecure
()
public
boolean
isHeaderComplete
()
public
boolean
isRequestedSessionIdFromCookie
()
public
boolean
isRequestedSessionIdFromURL
()
public
boolean
isRequestedSessionIdFromUrl
()
public
boolean
isRequestedSessionIdValid
()
public
boolean
isSecure
()
public
boolean
isUserInRole
(
String
s)
protected
void
parseUrlCookie
()
public
void
populateWebProxyInfo
()
protected
String
removeAndGetSIDFromScheme
()
public
void
removeAttribute
(
String
name)
public
boolean
removeHeader
(
String
header)
protected
void
requestPostReadProcessor
()
public
void
setArchiveTranslate
(boolean t)
public
void
setAttribute
(
String
name,
Object
obj)
public
void
setContentStream
(
BufferedInputStream
in)
public
void
setGatewayHost
(
String
gwhost)
public
void
setGatewayURL
(
String
url)
public
void
setHost
(
String
host)
public
void
setMethod
(
String
method)
public
void
setObject
(
String
object)
public
void
setPort
(
String
port)
public
void
setProtocol
(
String
protocol)
public
void
setRequestHeader
(
String
header,
String
value)
public
void
setSessionValue
(
String
value)
public
void
setURL
(
String
url)
public
String
toString
()
Field Detail
SessionInURLDelimiter
final
protected
static
String
SessionInURLDelimiter
(Code)
encodedGatewayURL
protected
String
encodedGatewayURL
(Code)
forceURLSession
protected
static boolean forceURLSession
(Code)
gatewayURL
protected
String
gatewayURL
(Code)
httpPlatformConfURL
protected
static
URL
httpPlatformConfURL
(Code)
httpPlatformConfURLString
protected
static
String
httpPlatformConfURLString
(Code)
httpsPlatformConfURL
protected
static
URL
httpsPlatformConfURL
(Code)
httpsPlatformConfURLString
protected
static
String
httpsPlatformConfURLString
(Code)
isCookieSupported
protected
boolean isCookieSupported
(Code)
urlSessionInfo
protected
String
urlSessionInfo
(Code)
usePlatformConfURL
protected
static boolean usePlatformConfURL
(Code)
Constructor Detail
HTTPRequest
public
HTTPRequest()
(Code)
HTTPRequest
public
HTTPRequest(
String
urlstr)
(Code)
HTTPRequest
public
HTTPRequest(
String
protocol, int dummyPort)
(Code)
Method Detail
addCustomHeader
public
void addCustomHeader(
String
key,
String
value)
(Code)
addHeader
public
void addHeader(
String
key,
String
value)
(Code)
addHeaderLine
public
void addHeaderLine(
String
s)
(Code)
Method called by HTTPSession when construction the Request Object.
addSize
public
void addSize(int size)
(Code)
getArchiveTranslate
public
boolean getArchiveTranslate()
(Code)
getAttribute
public
Object
getAttribute(
String
name)
(Code)
Method in servlet
getAttributeNames
public
Enumeration
getAttributeNames()
(Code)
getAuthType
public
String
getAuthType()
(Code)
getCertificate
public
byte[] getCertificate()
(Code)
getCharacterEncoding
public
String
getCharacterEncoding()
(Code)
getContentLength
public
int getContentLength()
(Code)
getContentStream
public
BufferedInputStream
getContentStream()
(Code)
getContentType
public
String
getContentType()
(Code)
getContextPath
public
String
getContextPath()
(Code)
getCookies
public
Cookie
[] getCookies()
(Code)
getDateHeader
public
long getDateHeader(
String
name)
(Code)
getGatewayHost
public
String
getGatewayHost()
(Code)
getGatewayPort
public
int getGatewayPort()
(Code)
getGatewayProtocol
public
String
getGatewayProtocol()
(Code)
getGatewayScheme
public
String
getGatewayScheme()
(Code)
getGatewayURL
public
String
getGatewayURL()
(Code)
getHTTPVersion
public
String
getHTTPVersion()
(Code)
HTTP Version
getHeader
public
String
getHeader(
String
name)
(Code)
getHeaderAttributeList
public
List
getHeaderAttributeList(
String
header)
(Code)
getHeaderNames
public
Enumeration
getHeaderNames()
(Code)
getHeaders
public
Enumeration
getHeaders(
String
name)
(Code)
getHost
public
String
getHost()
(Code)
getInputStream
public
ServletInputStream
getInputStream()
(Code)
getIntHeader
public
int getIntHeader(
String
name)
(Code)
getLocale
public
java.util.Locale
getLocale()
(Code)
getLocales
public
Enumeration
getLocales()
(Code)
getMethod
public
String
getMethod()
(Code)
Request Method
getNetworkInfo
public
Properties
getNetworkInfo()
(Code)
getObject
public
String
getObject()
(Code)
getParameter
public
String
getParameter(
String
name)
(Code)
getParameterNames
public
Enumeration
getParameterNames()
(Code)
getParameterValues
public
String
[] getParameterValues(
String
name)
(Code)
getPathInfo
public
String
getPathInfo()
(Code)
getPathTranslated
public
String
getPathTranslated()
(Code)
getPort
public
String
getPort()
(Code)
getPortFromCustomUrl
public
String
getPortFromCustomUrl(
String
knownPort)
(Code)
getProtocol
public
String
getProtocol()
(Code)
getProtocolFromCustomUrl
public
String
getProtocolFromCustomUrl(
String
knownProtocol)
(Code)
getProxyHost
public
String
getProxyHost()
(Code)
getProxyPort
public
int getProxyPort()
(Code)
getQueryString
public
String
getQueryString()
(Code)
getReader
public
BufferedReader
getReader()
(Code)
getRealPath
public
String
getRealPath(
String
name)
(Code)
getRemoteAddr
public
String
getRemoteAddr()
(Code)
getRemoteHost
public
String
getRemoteHost()
(Code)
getRemoteUser
public
String
getRemoteUser()
(Code)
getRequestDispatcher
public
javax.servlet.RequestDispatcher
getRequestDispatcher(
String
s)
(Code)
getRequestHeader
public
String
getRequestHeader(
String
header)
(Code)
Method to retrieve an arbitrary header.
getRequestHeaderBytes
public
byte[] getRequestHeaderBytes()
(Code)
Byte array of header suitable for sending across network
getRequestURI
public
String
getRequestURI()
(Code)
getRequestedSessionId
public
String
getRequestedSessionId()
(Code)
getScheme
public
String
getScheme()
(Code)
getServerName
public
String
getServerName()
(Code)
getServerPort
public
int getServerPort()
(Code)
getServletPath
public
String
getServletPath()
(Code)
getSession
public
HttpSession getSession()
(Code)
getSession
public
HttpSession getSession(boolean create)
(Code)
getSessionID
public
String
getSessionID()
(Code)
getSize
public
int getSize()
(Code)
getURI
public
String
getURI()
(Code)
getURL
public
String
getURL()
(Code)
request url, minus the first /
getUnEncodedGatewayURL
public
String
getUnEncodedGatewayURL()
(Code)
getUseProxy
public
boolean getUseProxy()
(Code)
getUserPrincipal
public
java.security.Principal
getUserPrincipal()
(Code)
isCookieSupported
public
boolean isCookieSupported()
(Code)
isForwardCookieHost
public
boolean isForwardCookieHost()
(Code)
isGatewayProtocolSecure
public
boolean isGatewayProtocolSecure()
(Code)
isHeaderComplete
public
boolean isHeaderComplete()
(Code)
True - valid http header parsed, false not enough info yet
isRequestedSessionIdFromCookie
public
boolean isRequestedSessionIdFromCookie()
(Code)
isRequestedSessionIdFromURL
public
boolean isRequestedSessionIdFromURL()
(Code)
isRequestedSessionIdFromUrl
public
boolean isRequestedSessionIdFromUrl()
(Code)
isRequestedSessionIdValid
public
boolean isRequestedSessionIdValid()
(Code)
isSecure
public
boolean isSecure()
(Code)
isUserInRole
public
boolean isUserInRole(
String
s)
(Code)
parseUrlCookie
protected
void parseUrlCookie()
(Code)
populateWebProxyInfo
public
void populateWebProxyInfo()
(Code)
removeAndGetSIDFromScheme
protected
String
removeAndGetSIDFromScheme()
(Code)
removeAttribute
public
void removeAttribute(
String
name)
(Code)
removeHeader
public
boolean removeHeader(
String
header)
(Code)
requestPostReadProcessor
protected
void requestPostReadProcessor()
(Code)
setArchiveTranslate
public
void setArchiveTranslate(boolean t)
(Code)
setAttribute
public
void setAttribute(
String
name,
Object
obj)
(Code)
setContentStream
public
void setContentStream(
BufferedInputStream
in)
(Code)
setGatewayHost
public
void setGatewayHost(
String
gwhost)
(Code)
setGatewayURL
public
void setGatewayURL(
String
url)
(Code)
setHost
public
void setHost(
String
host)
(Code)
setMethod
public
void setMethod(
String
method)
(Code)
setObject
public
void setObject(
String
object)
(Code)
setPort
public
void setPort(
String
port)
(Code)
setProtocol
public
void setProtocol(
String
protocol)
(Code)
setRequestHeader
public
void setRequestHeader(
String
header,
String
value)
(Code)
setSessionValue
public
void setSessionValue(
String
value)
(Code)
setURL
public
void setURL(
String
url)
(Code)
toString
public
String
toString()
(Code)
Something informative to print out
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.