Java Doc for SecurityHeader.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » ws » security » opt » impl » outgoing » 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 » 6.0 JDK Modules com.sun » xws security » com.sun.xml.ws.security.opt.impl.outgoing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

SecurityHeader
public class SecurityHeader (Code)

author:
   K.Venugopal@sun.com


Field Summary
final public static  intLAYOUT_LAX
    
final public static  intLAYOUT_LAX_TS_FIRST
    
final public static  intLAYOUT_LAX_TS_LAST
    
final public static  intLAYOUT_STRICT
    
protected  intheaderLayout
    
protected  ArrayList<SecurityHeaderElement>secHeaderContent
    
protected  StringsoapVersion
    

Constructor Summary
public  SecurityHeader()
    
public  SecurityHeader(int layout, String soapVersion)
    

Method Summary
public  voidadd(SecurityHeaderElement header)
    
public  voidappend(SecurityHeaderElement element)
    
public  StringgetAttribute(String nsUri, String localName)
     Gets the attribute value on the header element.
Parameters:
  nsUri - The namespace URI of the attribute.
public  StringgetAttribute(QName name)
     Gets the attribute value on the header element.
public  SecurityHeaderElementgetChildElement(String localName, String uri)
    
public  SecurityHeaderElementgetChildElement(String id)
    
public  intgetHeaderLayout()
    
public  IteratorgetHeaders(String localName, String uri)
    
public  StringgetLocalPart()
     Gets the local name of this header element.
public  StringgetNamespaceURI()
     Gets the namespace URI of this header element.
public  StringgetSOAPVersion()
    
public  voidprepend(SecurityHeaderElement element)
    
public  booleanreplace(SecurityHeaderElement replaceThis, SecurityHeaderElement withThis)
    
public  voidsetHeaderLayout(int headerLayout)
    
public  voidsetSOAPVersion(String soapVersion)
    
public  voidwriteTo(XMLStreamWriter streamWriter)
     Writes out the header.
throws:
  XMLStreamException - if the operation fails for some reason.
public  voidwriteTo(SOAPMessage saaj)
     Writes out the header to the given SOAPMessage.

Sometimes a Message needs to produce itself as SOAPMessage , in which case each header needs to turn itself into a header.
throws:
  SOAPException - if the operation fails for some reason.

public  voidwriteTo(ContentHandler contentHandler, ErrorHandler errorHandler)
     Writes out the header as SAX events.

Sometimes a Message needs to produce SAX events, and this method is necessary for headers to participate to it.

A header is responsible for producing the SAX events for its part, including startPrefixMapping and endPrefixMapping, but not startDocument/endDocument.

Note that SAX contract requires that any error that does NOT originate from ContentHandler (meaning any parsing error and etc) must be first reported to ErrorHandler .


Field Detail
LAYOUT_LAX
final public static int LAYOUT_LAX(Code)



LAYOUT_LAX_TS_FIRST
final public static int LAYOUT_LAX_TS_FIRST(Code)



LAYOUT_LAX_TS_LAST
final public static int LAYOUT_LAX_TS_LAST(Code)



LAYOUT_STRICT
final public static int LAYOUT_STRICT(Code)



headerLayout
protected int headerLayout(Code)



secHeaderContent
protected ArrayList<SecurityHeaderElement> secHeaderContent(Code)



soapVersion
protected String soapVersion(Code)




Constructor Detail
SecurityHeader
public SecurityHeader()(Code)
Default constructor uses Lax Message Layout and SOAP 1.1 version



SecurityHeader
public SecurityHeader(int layout, String soapVersion)(Code)




Method Detail
add
public void add(SecurityHeaderElement header)(Code)



append
public void append(SecurityHeaderElement element)(Code)



getAttribute
public String getAttribute(String nsUri, String localName)(Code)
Gets the attribute value on the header element.
Parameters:
  nsUri - The namespace URI of the attribute. Can be empty.
Parameters:
  localName - The local name of the attribute.if the attribute is found, return the whitespace normalized value.(meaning no leading/trailing space, no consequtive whitespaces in-between.)Otherwise null. Note that the XML parsers are responsible forwhitespace-normalizing attributes, so Header implementationdoesn't have to do anything.



getAttribute
public String getAttribute(QName name)(Code)
Gets the attribute value on the header element.

This is a convenience method that calls into SecurityHeader.getAttribute(String,String)
Parameters:
  name - Never null.
See Also:   SecurityHeader.getAttribute(String,String)




getChildElement
public SecurityHeaderElement getChildElement(String localName, String uri)(Code)



getChildElement
public SecurityHeaderElement getChildElement(String id)(Code)



getHeaderLayout
public int getHeaderLayout()(Code)



getHeaders
public Iterator getHeaders(String localName, String uri)(Code)



getLocalPart
public String getLocalPart()(Code)
Gets the local name of this header element. this string must be interned.



getNamespaceURI
public String getNamespaceURI()(Code)
Gets the namespace URI of this header element. this string must be interned.



getSOAPVersion
public String getSOAPVersion()(Code)



prepend
public void prepend(SecurityHeaderElement element)(Code)



replace
public boolean replace(SecurityHeaderElement replaceThis, SecurityHeaderElement withThis)(Code)



setHeaderLayout
public void setHeaderLayout(int headerLayout)(Code)



setSOAPVersion
public void setSOAPVersion(String soapVersion)(Code)



writeTo
public void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException(Code)
Writes out the header.
throws:
  XMLStreamException - if the operation fails for some reason. This leaves thewriter to an undefined state.



writeTo
public void writeTo(SOAPMessage saaj) throws SOAPException(Code)
Writes out the header to the given SOAPMessage.

Sometimes a Message needs to produce itself as SOAPMessage , in which case each header needs to turn itself into a header.
throws:
  SOAPException - if the operation fails for some reason. This leaves thewriter to an undefined state.




writeTo
public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException(Code)
Writes out the header as SAX events.

Sometimes a Message needs to produce SAX events, and this method is necessary for headers to participate to it.

A header is responsible for producing the SAX events for its part, including startPrefixMapping and endPrefixMapping, but not startDocument/endDocument.

Note that SAX contract requires that any error that does NOT originate from ContentHandler (meaning any parsing error and etc) must be first reported to ErrorHandler . If the SAX event production cannot be continued and the processing needs to abort, the code may then throw the same SAXParseException reported to ErrorHandler .
Parameters:
  contentHandler - The ContentHandler that receives SAX events.
Parameters:
  errorHandler - The ErrorHandler that receives parsing errors.




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)

w_w___w___.___j__av__a2___s__.__c___o___m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.