Java Code Examples for com.sun.xml.internal.ws.api.message.Header#getRole()
The following examples show how to use
com.sun.xml.internal.ws.api.message.Header#getRole() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SOAPMessageContextImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 2
Source File: SOAPMessageContextImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 3
Source File: SOAPMessageContextImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 4
Source File: SOAPMessageContextImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 5
Source File: SOAPMessageContextImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 6
Source File: SOAPMessageContextImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 7
Source File: SOAPMessageContextImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }
Example 8
Source File: SOAPMessageContextImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Object[] getHeaders(QName header, JAXBContext jaxbContext, boolean allRoles) { SOAPVersion soapVersion = binding.getSOAPVersion(); List<Object> beanList = new ArrayList<Object>(); try { Iterator<Header> itr = packet.getMessage().getHeaders().getHeaders(header,false); if(allRoles) { while(itr.hasNext()) { beanList.add(itr.next().readAsJAXB(jaxbContext.createUnmarshaller())); } } else { while(itr.hasNext()) { Header soapHeader = itr.next(); //Check if the role is one of the roles on this Binding String role = soapHeader.getRole(soapVersion); if(getRoles().contains(role)) { beanList.add(soapHeader.readAsJAXB(jaxbContext.createUnmarshaller())); } } } return beanList.toArray(); } catch(Exception e) { throw new WebServiceException(e); } }