Package org.apache.woden.xml

Examples of org.apache.woden.xml.StringAttr


        }
       
        if( (SOAPConstants.VERSION_1_2.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP12_HTTP)) ||
            (SOAPConstants.VERSION_1_1.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP11_HTTP)) )
        {
            StringAttr separator = (StringAttr) ((WSDLElement) getParent())
                .getExtensionAttribute(HTTPConstants.Q_ATTR_QUERY_PARAMETER_SEPARATOR);
            return separator != null ? separator.getString() : null;
        }
        else
        {
            return null;
        }
View Full Code Here


        }
       
        if( (SOAPConstants.VERSION_1_2.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP12_HTTP)) ||
            (SOAPConstants.VERSION_1_1.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP11_HTTP)) )
        {
            StringAttr ceDef = (StringAttr) ((WSDLElement)getParent())
               .getExtensionAttribute(HTTPConstants.Q_ATTR_CONTENT_ENCODING_DEFAULT);
            return ceDef != null ? ceDef.getString() : null;
        }
        else
        {
            return null;
        }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.woden.wsdl20.extensions.http.HTTPBindingOperationExtensions#getHttpLocation()
   */
  public HTTPLocation getHttpLocation() {
    StringAttr httpLoc = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_LOCATION);
    return httpLoc != null ? new HTTPLocation(httpLoc.getString()) : null;
  }
View Full Code Here

     * 4. Otherwise, return "POST"
   */
  public String getHttpMethod() {

    // 1. try whttp:method
    StringAttr methodAttr = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_METHOD);
    if (methodAttr != null) {
      return methodAttr.getString();
    }

        // 2. return null (i.e. no default specified in the spec...yet)
        return null; //TODO remove if default behaviour below is used.
       
View Full Code Here

     * {http method} is GET or DELETE, or application/xml if {http method} has
     * any other value.
   */
  public String getHttpInputSerialization() {
       
    StringAttr serialization = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_INPUT_SERIALIZATION);
    if (serialization != null) {
      return serialization.getString();
    }

        //TODO replace determineHttpMethod() with getHttpMethod() if spec is
        //modified to define {http method} defaults in the component model
    String method = determineHttpMethod();
View Full Code Here

     * Per Part 2, sect 6.3.3, if this attribute is omitted then
     * {http output serialization} will be application/xml for any {http method}
     * value.
   */
  public String getHttpOutputSerialization() {
    StringAttr serialization = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_OUTPUT_SERIALIZATION);
    return serialization != null ? serialization.getString()
        : HTTPConstants.SERIAL_APP_XML;
  }
View Full Code Here

   * @see org.apache.woden.wsdl20.extensions.http.HTTPBindingOperationExtensions#getHttpFaultSerialization()
     *
     * Per Part 2, sect 6.4.5, if attribute omitted default to application/xml.
   */
  public String getHttpFaultSerialization() {
    StringAttr serialization = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_FAULT_SERIALIZATION);
    return serialization != null ? serialization.getString()
        : HTTPConstants.SERIAL_APP_XML;
  }
View Full Code Here

   *
   * @see org.apache.woden.wsdl20.extensions.http.HTTPBindingOperationExtensions#getHttpQueryParameterSeparator()
   */
  public String getHttpQueryParameterSeparator() {
       
    StringAttr separator = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_QUERY_PARAMETER_SEPARATOR);
        return separator != null ? separator.getString() : null;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.apache.woden.wsdl20.extensions.http.HTTPBindingOperationExtensions#getHttpContentEncodingDefault()
   */
  public String getHttpContentEncodingDefault() {
    StringAttr contEncodingDef = (StringAttr) ((WSDLElement) getParent())
        .getExtensionAttribute(HTTPConstants.Q_ATTR_CONTENT_ENCODING_DEFAULT);
    return contEncodingDef != null ? contEncodingDef.getString() : null;
  }
View Full Code Here

        }
       
        if( (SOAPConstants.VERSION_1_2.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP12_HTTP)) ||
            (SOAPConstants.VERSION_1_1.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP11_HTTP)) )
        {
            StringAttr contEncoding = (StringAttr) ((WSDLElement)getParent())
               .getExtensionAttribute(HTTPConstants.Q_ATTR_CONTENT_ENCODING);
            return contEncoding != null ? contEncoding.getString() : null;
        }
        else
        {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.apache.woden.xml.StringAttr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.