| org.apache.cxf.systest.http.HTTPConduitTest
HTTPConduitTest | public class HTTPConduitTest extends AbstractBusClientServerTestBase (Code) | | This class tests several issues and Conduit policies based
on a set up of redirecting servers.
Http Redirection:
Rethwel(http:9004) ------\
----> Mortimer (http:9000)
Poltim(https:9005) ------/
HttpS redirection/Trust:
Tarpin(https:9003) ----> Gordy(https:9001) ----> Bethal(https:9002)
Redirect Loop:
Hurlon (http:9006) ----> Abost(http:9007) ----\
^ |
|-------------------------------------------/
Hostname Verifier Test
Morpit (https:9008)
The Bethal server issues 401 with differing realms depending on the
User name given in the authorization header.
The Morpit has a CN that is not equal to "localhost" to kick in
the Hostname Verifier.
|
Inner Class :class DefaultBusFactory extends SpringBusFactory | |
Inner Class :class MyHttpsTrustDecider extends MessageTrustDecider | |
Inner Class :public class MyBasicAuthSupplier extends HttpBasicAuthSupplier | |
HTTPConduitTest | public HTTPConduitTest()(Code) | | |
setUp | public void setUp()(Code) | | |
startServer | public static synchronized boolean startServer(String name)(Code) | | This function is used to start up a server. It only "starts" a
server if it hasn't been started before, hence its static nature.
This approach is used to start the needed servers for a particular test
instead of starting them all in "startServers". This single needed
server approach allieviates the pain in starting them all just to run
a particular test in the debugger.
|
testBasicConnection | public void testBasicConnection() throws Exception(Code) | | |
testHttp2HttpLoopRedirectFail | public void testHttp2HttpLoopRedirectFail() throws Exception(Code) | | This methods tests that a redirection loop will fail.
Hurlon redirects to Abost, which redirects to Hurlon.
Note: Unfortunately, the invocation may "fail" for any
number of reasons.
|
testHttp2HttpRedirect | public void testHttp2HttpRedirect() throws Exception(Code) | | This method tests if http to http redirects work.
Rethwel redirects to Mortimer.
|
testHttp2HttpRedirectFail | public void testHttp2HttpRedirectFail() throws Exception(Code) | | This methods tests that a conduit that is not configured
to follow redirects will not. The default is not to
follow redirects.
Rethwel redirects to Mortimer.
Note: Unfortunately, the invocation will
"fail" for any number of other reasons.
|
testHttpsBasicConnection | public void testHttpsBasicConnection() throws Exception(Code) | | This methods tests a basic https connection to Bethal.
It supplies an authorization policy with premetive user/pass
to avoid the 401.
|
testHttpsBasicConnectionWithConfig | public void testHttpsBasicConnectionWithConfig() throws Exception(Code) | | This methods tests a basic https connection to Bethal.
It supplies an authorization policy with premetive user/pass
to avoid the 401.
|
testHttpsRedirect401Response | public void testHttpsRedirect401Response() throws Exception(Code) | | This tests redirects through Gordy to Bethal. Bethal will
supply a series of 401s. See PushBack401.
|
testHttpsRedirectToHttpFail | public void testHttpsRedirectToHttpFail() throws Exception(Code) | | This test should fail when we hit Poltim, since it redirects
to Mortimer, which is an http url, and Poltim is an https server.
|
testHttpsTrustRedirect | public void testHttpsTrustRedirect() throws Exception(Code) | | |
|
|