Java Doc for AxisServlet.java in  » Portal » stringbeans-3.5 » com » nabhinc » ws » soap » 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 » stringbeans 3.5 » com.nabhinc.ws.soap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.nabhinc.ws.soap.AxisServlet

AxisServlet
public class AxisServlet extends AxisServletBase (Code)

author:
   Doug Davis (dug@us.ibm.com)
author:
   Steve Loughran
author:
   xdoclet tags are not active yet; keep web.xml in sync.
author:
   To change the location of the services, change url-pattern in web.xml and
author:
   set parameter axis.servicesPath in server-config.wsdd. For more information see
author:
   Axis Reference Guide.


Field Summary
final public static  StringINIT_PROPERTY_DISABLE_SERVICES_LIST
    
final public static  StringINIT_PROPERTY_ENABLE_LIST
    
final public static  StringINIT_PROPERTY_JWS_CLASS_DIR
    
final public static  StringINIT_PROPERTY_SERVICES_PATH
    
final public static  StringINIT_PROPERTY_TRANSPORT_NAME
    
final public static  StringINIT_PROPERTY_USE_SECURITY
    
protected static  Loglog
    

Constructor Summary
public  AxisServlet()
    

Method Summary
protected  voidconfigureResponseFromAxisFault(HttpServletResponse response, AxisFault fault)
     Configure the servlet response status code and maybe other headers from the fault info.
protected  MessageconvertExceptionToAxisFault(Throwable exception, Message responseMsg)
     turn any Exception into an AxisFault, log it, set the response status code according to what the specifications say and return a response message for posting.
protected  MessageContextcreateMessageContext(AxisEngine engine, HttpServletRequest req, HttpServletResponse res)
     Place the Request message in the MessagContext object - notice that we just leave it as a 'ServletRequest' object and let the Message processing routine convert it - we don't do it since we don't know how it's going to be used - perhaps it might not even need to be parsed.
public  voiddoGet(HttpServletRequest request, HttpServletResponse response)
     Process GET requests.
public  voiddoPost(HttpServletRequest req, HttpServletResponse res)
     Process a POST to the servlet by handing it off to the Axis Engine.
protected  StringgetDefaultJWSClassDir()
     Provided to allow overload of default JWSClassDir by derived class.
protected  intgetHttpServletResponseStatus(AxisFault af)
     Extract information from AxisFault and map it to a HTTP Status code.
protected  StringgetJWSClassDir()
    
protected  StringgetSoapAction(HttpServletRequest req)
     Extract the SOAPAction header.
public  voidinit()
     Initialization method.
public  voidinitQueryStringHandlers()
     Initialize a Handler for the transport defined in the Axis server config.
protected  voidlogException(Throwable e)
    
protected  voidprocessAxisFault(AxisFault fault)
     routine called whenever an axis fault is caught; where they are logged and any other business.
protected  voidreportAvailableServices(HttpServletResponse response, PrintWriter writer, HttpServletRequest request)
    
protected  voidreportCantGetAxisService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)
    
protected  voidreportCantGetJWSService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)
    
protected  voidreportNoWSDL(HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault)
     report that we have no WSDL This method was moved to the querystring handler QSWSDLHandler.
protected  voidreportServiceInfo(HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName)
     print a snippet of service info.
protected  voidsendResponse(String contentType, HttpServletResponse res, Message responseMsg)
     write a message to the response, set appropriate headers for content type..etc.

Field Detail
INIT_PROPERTY_DISABLE_SERVICES_LIST
final public static String INIT_PROPERTY_DISABLE_SERVICES_LIST(Code)



INIT_PROPERTY_ENABLE_LIST
final public static String INIT_PROPERTY_ENABLE_LIST(Code)



INIT_PROPERTY_JWS_CLASS_DIR
final public static String INIT_PROPERTY_JWS_CLASS_DIR(Code)



INIT_PROPERTY_SERVICES_PATH
final public static String INIT_PROPERTY_SERVICES_PATH(Code)



INIT_PROPERTY_TRANSPORT_NAME
final public static String INIT_PROPERTY_TRANSPORT_NAME(Code)



INIT_PROPERTY_USE_SECURITY
final public static String INIT_PROPERTY_USE_SECURITY(Code)



log
protected static Log log(Code)




Constructor Detail
AxisServlet
public AxisServlet()(Code)
create a new servlet instance




Method Detail
configureResponseFromAxisFault
protected void configureResponseFromAxisFault(HttpServletResponse response, AxisFault fault)(Code)
Configure the servlet response status code and maybe other headers from the fault info.
Parameters:
  response - response to configure
Parameters:
  fault - what went wrong



convertExceptionToAxisFault
protected Message convertExceptionToAxisFault(Throwable exception, Message responseMsg)(Code)
turn any Exception into an AxisFault, log it, set the response status code according to what the specifications say and return a response message for posting. This will be the response message passed in if non-null; one generated from the fault otherwise.
Parameters:
  exception - what went wrong
Parameters:
  responseMsg - what response we have (if any) a response message to send to the user



createMessageContext
protected MessageContext createMessageContext(AxisEngine engine, HttpServletRequest req, HttpServletResponse res)(Code)
Place the Request message in the MessagContext object - notice that we just leave it as a 'ServletRequest' object and let the Message processing routine convert it - we don't do it since we don't know how it's going to be used - perhaps it might not even need to be parsed. a message context



doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)
Process GET requests. This includes handoff of pseudo-SOAP requests
Parameters:
  request - request in
Parameters:
  response - request out
throws:
  ServletException -
throws:
  IOException -



doPost
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)
Process a POST to the servlet by handing it off to the Axis Engine. Here is where SOAP messages are received
Parameters:
  req - posted request
Parameters:
  res - respose
throws:
  ServletException - trouble
throws:
  IOException - different trouble



getDefaultJWSClassDir
protected String getDefaultJWSClassDir()(Code)
Provided to allow overload of default JWSClassDir by derived class. directory for JWS files



getHttpServletResponseStatus
protected int getHttpServletResponseStatus(AxisFault af)(Code)
Extract information from AxisFault and map it to a HTTP Status code.
Parameters:
  af - Axis Fault HTTP Status code.



getJWSClassDir
protected String getJWSClassDir()(Code)



getSoapAction
protected String getSoapAction(HttpServletRequest req) throws AxisFault(Code)
Extract the SOAPAction header. if SOAPAction is null then we'll we be forced to scan the body for it. if SOAPAction is "" then use the URL
Parameters:
  req - incoming request the action
throws:
  AxisFault -



init
public void init() throws javax.servlet.ServletException(Code)
Initialization method.



initQueryStringHandlers
public void initQueryStringHandlers()(Code)
Initialize a Handler for the transport defined in the Axis server config. This includes optionally filling in query string handlers.



logException
protected void logException(Throwable e)(Code)
log any exception to our output log, at our chosen level
Parameters:
  e - what went wrong



processAxisFault
protected void processAxisFault(AxisFault fault)(Code)
routine called whenever an axis fault is caught; where they are logged and any other business. The method may modify the fault in the process
Parameters:
  fault - what went wrong.



reportAvailableServices
protected void reportAvailableServices(HttpServletResponse response, PrintWriter writer, HttpServletRequest request) throws ConfigurationException, AxisFault(Code)
This method lists the available services; it is called when there is nothing to execute on a GET
Parameters:
  response -
Parameters:
  writer -
Parameters:
  request -
throws:
  ConfigurationException -
throws:
  AxisFault -



reportCantGetAxisService
protected void reportCantGetAxisService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)(Code)
generate the error response to indicate that there is apparently no endpoint there
Parameters:
  request - the request that didnt have an edpoint
Parameters:
  response - response we are generating
Parameters:
  writer - open writer for the request



reportCantGetJWSService
protected void reportCantGetJWSService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)(Code)
probe for a JWS page and report 'no service' if one is not found there
Parameters:
  request - the request that didnt have an edpoint
Parameters:
  response - response we are generating
Parameters:
  writer - open writer for the request



reportNoWSDL
protected void reportNoWSDL(HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault)(Code)
report that we have no WSDL This method was moved to the querystring handler QSWSDLHandler. The method reportNoWSDL in AxisServlet is never called. Perhaps the method is overwritten in subclasses of AxisServlet so the method wasn't removed. See the discussion in http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23845
Parameters:
  res -
Parameters:
  writer -
Parameters:
  moreDetailCode - optional name of a message to provide more detail
Parameters:
  axisFault - optional fault string, for extra info at debug time only



reportServiceInfo
protected void reportServiceInfo(HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName)(Code)
print a snippet of service info.
Parameters:
  service - service
Parameters:
  writer - output channel
Parameters:
  serviceName - where to put stuff



sendResponse
protected void sendResponse(String contentType, HttpServletResponse res, Message responseMsg) throws AxisFault, IOException(Code)
write a message to the response, set appropriate headers for content type..etc.
Parameters:
  res - response
Parameters:
  responseMsg - message to write
throws:
  AxisFault -
throws:
  IOException - if the response stream can not be written to



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.