congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Parameter.setMIMEInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
setMIMEInfo
method
in
org.apache.axis.wsdl.symbolTable.Parameter

Best Java code snippets using org.apache.axis.wsdl.symbolTable.Parameter.setMIMEInfo (Showing top 3 results out of 315)

origin: axis/axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
origin: org.apache.axis/axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
org.apache.axis.wsdl.symbolTableParametersetMIMEInfo

Javadoc

Set the MIME type of the parameter.

Popular methods of Parameter

  • getMode
    Get the mode (IN, INOUT, OUT) of the parameter.
  • getName
    Get the name of this parameter. This call is equivalent to getQName().getLocalPart().
  • getType
    Get the TypeEntry of the parameter.
  • getQName
    Get the fully qualified name of this parameter.
  • isInHeader
    Is this parameter in the input message header?
  • isOutHeader
    Is this parameter in the output message header?
  • <init>
  • getMIMEInfo
    Get the MIME type of the parameter.
  • isNillable
    Indicates whether this parameter is nillable or not.
  • isOmittable
  • setInHeader
    Set the inHeader flag for this parameter.
  • setMode
    Set the mode (IN, INOUT, OUT) of the parameter. If the input to this method is not one of IN, INOUT,
  • setInHeader,
  • setMode,
  • setName,
  • setNillable,
  • setOmittable,
  • setOutHeader,
  • setQName,
  • setType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now