com.sun.xml.internal.ws.developer.JAXWSProperties Java Examples

The following examples show how to use com.sun.xml.internal.ws.developer.JAXWSProperties. 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: Packet.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #2
Source File: Packet.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #3
Source File: WsaPropertyBag.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:MessageID</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #4
Source File: WsaPropertyBag.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #5
Source File: HttpClientTransport.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}
 
Example #6
Source File: Packet.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #7
Source File: WsaPropertyBag.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #8
Source File: WsaPropertyBag.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:Action</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_ACTION)
public String getAction() {
    if (packet.getMessage() == null) {
      return null;
    }
    Header h = packet.getMessage().getHeaders().get(addressingVersion.actionTag, false);
    if(h==null) return null;
    return h.getStringContent();
}
 
Example #9
Source File: WsaPropertyBag.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:MessageID</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #10
Source File: HttpClientTransport.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}
 
Example #11
Source File: Packet.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #12
Source File: WsaPropertyBag.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@code wsa:To} header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #13
Source File: WsaPropertyBag.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@code wsa:Action} header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_ACTION)
public String getAction() {
    if (packet.getMessage() == null) {
      return null;
    }
    Header h = packet.getMessage().getHeaders().get(addressingVersion.actionTag, false);
    if(h==null) return null;
    return h.getStringContent();
}
 
Example #14
Source File: WsaPropertyBag.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@code wsa:MessageID} header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #15
Source File: HttpClientTransport.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}
 
Example #16
Source File: WsaPropertyBag.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #17
Source File: WsaPropertyBag.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #18
Source File: WsaPropertyBag.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:Action</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_ACTION)
public String getAction() {
    if (packet.getMessage() == null) {
      return null;
    }
    Header h = packet.getMessage().getHeaders().get(addressingVersion.actionTag, false);
    if(h==null) return null;
    return h.getStringContent();
}
 
Example #19
Source File: WsaPropertyBag.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:MessageID</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #20
Source File: HttpClientTransport.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}
 
Example #21
Source File: Packet.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #22
Source File: WsaPropertyBag.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #23
Source File: WsaPropertyBag.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:Action</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_ACTION)
public String getAction() {
    if (packet.getMessage() == null) {
      return null;
    }
    Header h = packet.getMessage().getHeaders().get(addressingVersion.actionTag, false);
    if(h==null) return null;
    return h.getStringContent();
}
 
Example #24
Source File: WsaPropertyBag.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:MessageID</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #25
Source File: HttpClientTransport.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}
 
Example #26
Source File: Packet.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *      This method is for exposing header list through {@link PropertySet#get(Object)},
 *      for user applications, and should never be invoked directly from within the JAX-WS RI.
 */
@Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY)
/*package*/ MessageHeaders getHeaderList() {
    Message msg = getMessage();
    if (msg == null) {
        return null;
    }
    return msg.getHeaders();
}
 
Example #27
Source File: WsaPropertyBag.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:To</tt> header.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_TO)
public String getTo() throws XMLStreamException {
  if (packet.getMessage() == null) {
    return null;
  }
  Header h = packet.getMessage().getHeaders().get(addressingVersion.toTag, false);
  if(h==null) return null;
  return h.getStringContent();
}
 
Example #28
Source File: WsaPropertyBag.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:Action</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
@Property(JAXWSProperties.ADDRESSING_ACTION)
public String getAction() {
    if (packet.getMessage() == null) {
      return null;
    }
    Header h = packet.getMessage().getHeaders().get(addressingVersion.actionTag, false);
    if(h==null) return null;
    return h.getStringContent();
}
 
Example #29
Source File: WsaPropertyBag.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the <tt>wsa:MessageID</tt> header content as String.
 *
 * @return
 *      null if the incoming SOAP message didn't have the header.
 */
// WsaServerTube.REQUEST_MESSAGE_ID is exposed for backward compatibility with 2.1
@Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
public String getMessageID() {
    if (packet.getMessage() == null) {
      return null;
    }
    return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
}
 
Example #30
Source File: HttpClientTransport.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected boolean checkHTTPS(HttpURLConnection connection) {
    if (connection instanceof HttpsURLConnection) {

        // TODO The above property needs to be removed in future version as the semantics of this property are not preoperly defined.
        // One should use JAXWSProperties.HOSTNAME_VERIFIER to control the behavior

        // does the client want client hostname verification by the service
        String verificationProperty =
            (String) context.invocationProperties.get(HOSTNAME_VERIFICATION_PROPERTY);
        if (verificationProperty != null) {
            if (verificationProperty.equalsIgnoreCase("true")) {
                ((HttpsURLConnection) connection).setHostnameVerifier(new HttpClientVerifier());
            }
        }

        // Set application's HostNameVerifier for this connection
        HostnameVerifier verifier =
            (HostnameVerifier) context.invocationProperties.get(JAXWSProperties.HOSTNAME_VERIFIER);
        if (verifier != null) {
            ((HttpsURLConnection) connection).setHostnameVerifier(verifier);
        }

        // Set application's SocketFactory for this connection
        SSLSocketFactory sslSocketFactory =
            (SSLSocketFactory) context.invocationProperties.get(JAXWSProperties.SSL_SOCKET_FACTORY);
        if (sslSocketFactory != null) {
            ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
        }

        return true;
    }
    return false;
}