Java Doc for TestCookieRFC2965Spec.java in » Net » Apache-common-HttpClient » org » apache » commons » httpclient » cookie » 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
»
Net
»
Apache common HttpClient
»
org.apache.commons.httpclient.cookie
Source Cross Reference
Class Diagram
Java Document (Java Doc)
org.apache.commons.httpclient.cookie
.TestCookieBase
org.apache.commons.httpclient.cookie
.TestCookieRFC2965Spec
TestCookieRFC2965Spec
public
class TestCookieRFC2965Spec extends
TestCookieBase
(Code)
Test cases for RFC2965 cookie spec
author:
jain.samit@gmail.com (Samit Jain)
Constructor Summary
public
TestCookieRFC2965Spec
(
String
name)
Method Summary
public
static Test
suite
()
public
void
testCompatibilityWithSetCookie
()
Test backward compatibility with
Set-Cookie
header.
public
void
testCookieExpiration
()
test cookie expiration.
public
void
testCookieSecure
()
test cookie
Secure
attribute.
public
void
testCookiesWithComma
()
public
void
testFormatInvalidCookie
()
public
void
testMatchDomain
()
test cookie
Domain
matching.
public
void
testMatchDomainLocal
()
test cookie local
Domain
matching.
public
void
testMatchPath
()
test cookie
Path
matching.
public
void
testMatchPort
()
test cookie
Port
matching.
public
void
testParseBlankDomain
()
public
void
testParseBlankPath
()
public
void
testParseBlankPort
()
public
void
testParseDiscard
()
test parsing
"Discard"
attribute.
public
void
testParseDomain
()
Test parsing cookie
"Domain"
attribute.
public
void
testParseDomainDefault
()
public
void
testParseInvalidParams
()
Test
parse
with invalid params.
public
void
testParseInvalidPort
()
public
void
testParseMaxage
()
test parsing cookie
"Max-age"
attribute.
public
void
testParseMaxageDefault
()
public
void
testParseNameValue
()
test parsing cookie name/value.
public
void
testParseNegativeMaxage
()
public
void
testParseNegativePort
()
public
void
testParseNegativeVersion
()
public
void
testParseNullDomain
()
public
void
testParseNullMaxage
()
public
void
testParseNullPath
()
public
void
testParseNullPort
()
public
void
testParseNullVersion
()
public
void
testParseOtherAttributes
()
test parsing
"Comment"
,
"CommentURL"
and
"Secure"
attributes.
public
void
testParsePath
()
Test parsing cookie
"Path"
attribute.
public
void
testParsePathDefault
()
public
void
testParsePort
()
Test parsing cookie
"Port"
attribute.
public
void
testParsePortDefault
()
public
void
testParseSecure
()
test parsing
"Secure"
attribute.
public
void
testParseVersion
()
test parsing cookie
"Version"
attribute.
public
void
testRFC2965CookieFormatting
()
Tests RFC 2965 compliant cookie formatting.
public
void
testRFC2965CookiesFormatting
()
Tests RFC 2965 compliant cookies formatting.
public
void
testValidateCookieName
()
Test cookie name validation.
public
void
testValidateDomainEffectiveHost
()
Test
Domain
validation.
public
void
testValidateDomainEmbeddedDot
()
Test
Domain
validation.
public
void
testValidateDomainIllegal
()
Test local
Domain
validation.
public
void
testValidateDomainLeadingDot
()
Test
Domain
validation.
public
void
testValidateDomainLocal
()
Test local
Domain
validation.
public
void
testValidateNoDomain
()
Test
Domain
validation when domain is not specified in
Set-Cookie2
header.
public
void
testValidatePath
()
Test cookie
Path
validation.
public
void
testValidatePort
()
Test cookie
Port
validation.
public
void
testValidateVersion
()
Test cookie
Version
validation.
Constructor Detail
TestCookieRFC2965Spec
public
TestCookieRFC2965Spec(
String
name)
(Code)
Method Detail
suite
public
static Test suite()
(Code)
testCompatibilityWithSetCookie
public
void testCompatibilityWithSetCookie() throws
Exception
(Code)
Test backward compatibility with
Set-Cookie
header.
testCookieExpiration
public
void testCookieExpiration() throws
Exception
(Code)
test cookie expiration.
testCookieSecure
public
void testCookieSecure() throws
Exception
(Code)
test cookie
Secure
attribute.
testCookiesWithComma
public
void testCookiesWithComma() throws
Exception
(Code)
Test parsing header with 2 cookies (separated by comma)
testFormatInvalidCookie
public
void testFormatInvalidCookie() throws
Exception
(Code)
testMatchDomain
public
void testMatchDomain() throws
Exception
(Code)
test cookie
Domain
matching.
testMatchDomainLocal
public
void testMatchDomainLocal() throws
Exception
(Code)
test cookie local
Domain
matching.
testMatchPath
public
void testMatchPath() throws
Exception
(Code)
test cookie
Path
matching. Cookie path attribute must path-match path of the request URI.
testMatchPort
public
void testMatchPort() throws
Exception
(Code)
test cookie
Port
matching.
testParseBlankDomain
public
void testParseBlankDomain() throws
Exception
(Code)
testParseBlankPath
public
void testParseBlankPath() throws
Exception
(Code)
testParseBlankPort
public
void testParseBlankPort() throws
Exception
(Code)
testParseDiscard
public
void testParseDiscard() throws
Exception
(Code)
test parsing
"Discard"
attribute.
testParseDomain
public
void testParseDomain() throws
Exception
(Code)
Test parsing cookie
"Domain"
attribute.
testParseDomainDefault
public
void testParseDomainDefault() throws
Exception
(Code)
testParseInvalidParams
public
void testParseInvalidParams() throws
Exception
(Code)
Test
parse
with invalid params.
testParseInvalidPort
public
void testParseInvalidPort() throws
Exception
(Code)
testParseMaxage
public
void testParseMaxage() throws
Exception
(Code)
test parsing cookie
"Max-age"
attribute.
testParseMaxageDefault
public
void testParseMaxageDefault() throws
Exception
(Code)
testParseNameValue
public
void testParseNameValue() throws
Exception
(Code)
test parsing cookie name/value.
testParseNegativeMaxage
public
void testParseNegativeMaxage() throws
Exception
(Code)
testParseNegativePort
public
void testParseNegativePort() throws
Exception
(Code)
testParseNegativeVersion
public
void testParseNegativeVersion() throws
Exception
(Code)
testParseNullDomain
public
void testParseNullDomain() throws
Exception
(Code)
testParseNullMaxage
public
void testParseNullMaxage() throws
Exception
(Code)
testParseNullPath
public
void testParseNullPath() throws
Exception
(Code)
testParseNullPort
public
void testParseNullPort() throws
Exception
(Code)
testParseNullVersion
public
void testParseNullVersion() throws
Exception
(Code)
testParseOtherAttributes
public
void testParseOtherAttributes() throws
Exception
(Code)
test parsing
"Comment"
,
"CommentURL"
and
"Secure"
attributes.
testParsePath
public
void testParsePath() throws
Exception
(Code)
Test parsing cookie
"Path"
attribute.
testParsePathDefault
public
void testParsePathDefault() throws
Exception
(Code)
testParsePort
public
void testParsePort() throws
Exception
(Code)
Test parsing cookie
"Port"
attribute.
testParsePortDefault
public
void testParsePortDefault() throws
Exception
(Code)
testParseSecure
public
void testParseSecure() throws
Exception
(Code)
test parsing
"Secure"
attribute.
testParseVersion
public
void testParseVersion() throws
Exception
(Code)
test parsing cookie
"Version"
attribute.
testRFC2965CookieFormatting
public
void testRFC2965CookieFormatting() throws
Exception
(Code)
Tests RFC 2965 compliant cookie formatting.
testRFC2965CookiesFormatting
public
void testRFC2965CookiesFormatting() throws
Exception
(Code)
Tests RFC 2965 compliant cookies formatting.
testValidateCookieName
public
void testValidateCookieName() throws
Exception
(Code)
Test cookie name validation.
testValidateDomainEffectiveHost
public
void testValidateDomainEffectiveHost() throws
Exception
(Code)
Test
Domain
validation. Effective host name must domain-match domain attribute.
testValidateDomainEmbeddedDot
public
void testValidateDomainEmbeddedDot() throws
Exception
(Code)
Test
Domain
validation. Domain must have atleast one embedded dot.
testValidateDomainIllegal
public
void testValidateDomainIllegal() throws
Exception
(Code)
Test local
Domain
validation. Effective host name minus domain must not contain any dots.
testValidateDomainLeadingDot
public
void testValidateDomainLeadingDot() throws
Exception
(Code)
Test
Domain
validation. Cookie domain attribute must have a leading dot.
testValidateDomainLocal
public
void testValidateDomainLocal() throws
Exception
(Code)
Test local
Domain
validation. Simple host names (without any dots) are valid only when cookie domain is specified as ".local".
testValidateNoDomain
public
void testValidateNoDomain() throws
Exception
(Code)
Test
Domain
validation when domain is not specified in
Set-Cookie2
header.
testValidatePath
public
void testValidatePath() throws
Exception
(Code)
Test cookie
Path
validation. Cookie path attribute must path-match request path.
testValidatePort
public
void testValidatePort() throws
Exception
(Code)
Test cookie
Port
validation. Request port must be in the port attribute list.
testValidateVersion
public
void testValidateVersion() throws
Exception
(Code)
Test cookie
Version
validation.
Methods inherited from
org.apache.commons.httpclient.cookie.TestCookieBase
public
static
Cookie
[] cookieParse(
CookieSpec
parser,
String
host, int port,
String
path, boolean isSecure,
Header
setHeader) throws
MalformedCookieException
(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.