Tabnine Logo
MediaType.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.apache.jena.atlas.web.MediaType

Best Java code snippets using org.apache.jena.atlas.web.MediaType.getType (Showing top 8 results out of 315)

origin: apache/jena

public String getType() {
  return mediaType.getType() ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public String getType()         { return mediaType.getType() ; }
public String getSubType()      { return mediaType.getSubType() ; }
origin: apache/jena

public boolean grounded(MediaType item) {
  return ! isStar(item.getType()) && ! isStar(item.getSubType()) ;
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public boolean grounded(MediaType item) {
  return ! isStar(item.getType()) && ! isStar(item.getSubType()) ;
}

origin: apache/jena

public boolean accepts(MediaType item)
{
  if ( ! accept(this.getType(), item.getType()) )
    return false ;
  
  return accept(this.getSubType(), item.getSubType()) ;
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public boolean accepts(MediaType item)
{
  if ( ! accept(this.getType(), item.getType()) )
    return false ;
  
  return accept(this.getSubType(), item.getSubType()) ;
}

origin: apache/jena

public boolean moreGroundedThan(MediaType item)
{
  if ( isStar(item.getType()) && ! isStar(this.getType()) )
    return true ;
  if ( isStar(item.getSubType()) && ! isStar(this.getSubType()) )
    return true ;
  return false ;
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public boolean moreGroundedThan(MediaType item)
{
  if ( isStar(item.getType()) && ! isStar(this.getType()) )
    return true ;
  if ( isStar(item.getSubType()) && ! isStar(this.getSubType()) )
    return true ;
  return false ;
}

org.apache.jena.atlas.webMediaTypegetType

Popular methods of MediaType

  • getContentType
  • toHeaderString
    Format for use in HTTP header
  • create
  • equals
  • getCharset
  • <init>
  • getParameter
  • getSubType
  • hashCode
  • parse
  • setParameter
  • toString
    Format to show structure - intentionally different from header form so you can tell parsing happened
  • setParameter,
  • toString,
  • createFromContentType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Runner (org.openjdk.jmh.runner)
  • From CI to AI: The AI layer in your organization
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