Java Code Examples for com.sun.xml.internal.ws.resources.AddressingMessages#VALIDATION_SERVER_NULL_ACTION
The following examples show how to use
com.sun.xml.internal.ws.resources.AddressingMessages#VALIDATION_SERVER_NULL_ACTION .
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: WsaTube.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 2
Source File: WsaServerTube.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 3
Source File: WsaTube.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 4
Source File: WsaServerTube.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 5
Source File: WsaTube.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 6
Source File: WsaServerTube.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 7
Source File: WsaTube.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 8
Source File: WsaServerTube.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 9
Source File: WsaTube.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 10
Source File: WsaServerTube.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 11
Source File: WsaTube.java From hottub with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 12
Source File: WsaServerTube.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 13
Source File: WsaTube.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 14
Source File: WsaServerTube.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }
Example 15
Source File: WsaTube.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
Example 16
Source File: WsaServerTube.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void validateAction(Packet packet) { //There may not be a WSDL operation. There may not even be a WSDL. //For instance this may be a RM CreateSequence message. WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet); if (wsdlBoundOperation == null) { return; } String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) { throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); } String expected = helper.getInputAction(packet); String soapAction = helper.getSOAPAction(packet); if (helper.isInputActionDefault(packet) && (soapAction != null && !soapAction.equals(""))) { expected = soapAction; } if (expected != null && !gotA.equals(expected)) { throw new ActionNotSupportedException(gotA); } }