XFireHome DocumentationJavadocs QuicklinksAegis Binding DevelopersDeveloper Space |
XFireServletThe core of the HTTP Transport takes place in the XFireServletController. Your own servlets can delegate appropriate requests to this class or you can use one of XFire's internal servlet classes. The XFireServlet is just a thin wrapper for the controller. The XFireServletController provides an xml configuration layer on top of this. Client authenticationThe Apache Jakarta HttpClient is used under the covers to provide HTTP client support. There are two ways which you can override the HttpClient settings. Note this functionality is only in CVS right now, so you will need to download a 1.0-RC-SNAPSHOT. 1. You can set the USERNAME/PASSWORD // Create your client Client client = ....; // Or get it from your proxy Client client = ((XFireProxy) Proxy.getInvocationHandler(myClientProxy)).getClient(); client.setProperty(Channel.USERNAME, "username"); client.setProperty(Channel.PASSWORD, "pass"); 2. You can supply your own HttpClientParms client.setProperty(CommonsHttpMessageSender.HTTP_CLIENT_PARAMS, myParams); The HTTPClient javadocs provide information on how to configure the HttpClientParams. |