Package javax.mail.search

Examples of javax.mail.search.SearchTerm


  }
 
 
  private SearchTerm parseSubjectTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String pattern  = ((Element)terms).getAttribute( "pattern" );
   
    if( pattern != null && pattern.length() > 0 ) {
      st = new SubjectTerm( pattern );
View Full Code Here


  }
 
 
  private SearchTerm parseBodyTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String pattern  = ((Element)terms).getAttribute( "pattern" );
   
    if( pattern != null && pattern.length() > 0 ) {
      st = new BodyTerm( pattern );
View Full Code Here

  }
 
 
  private SearchTerm parseRecipientTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String pattern  = ((Element)terms).getAttribute( "pattern" );
    String type     = ((Element)terms).getAttribute( "recipientType" );
   
    if( StringUtils.isEmpty(type) ) {
View Full Code Here

  }
 
 
  private SearchTerm parseHeaderTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String pattern  = ((Element)terms).getAttribute( "pattern" );
    String name     = ((Element)terms).getAttribute( "name" );
   
    if( StringUtils.isEmpty(name) ) {
View Full Code Here

  }
 
 
  private SearchTerm parseFlagTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String flag  = ((Element)terms).getAttribute( "flag" );
    String value = ((Element)terms).getAttribute( "value" );
   
    if( StringUtils.isEmpty(value) ) {
View Full Code Here

  }
 
 
  private SearchTerm parseSentDateTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String value = ((Element)terms).getAttribute( "date" );
    String format = ((Element)terms).getAttribute( "format" );
   
    if( StringUtils.isEmpty(value) ) {
View Full Code Here

  }
 
 
  private SearchTerm parseReceivedDateTerm( Node terms ) throws XPathException
  {
    SearchTerm  st = null;
   
    String value = ((Element)terms).getAttribute( "date" );
    String format = ((Element)terms).getAttribute( "format" );
   
    if( StringUtils.isEmpty(value) ) {
View Full Code Here

    }

    @Override
    public List<GmailMessage> getMessagesBy(EmailSearchStrategy strategy, String value)
    {
        SearchTerm seekStrategy = null;
        switch(strategy)
        {
            case SUBJECT:
                seekStrategy =  new SubjectTerm(value);
                LOG.debug("Fetching emails with a subject of \"" + value + "\"");
View Full Code Here

    }

    @Override
    public GmailMessageList getMessagesBy(EmailSearchStrategy strategy, String value)
    {
        SearchTerm seekStrategy = null;
        switch(strategy)
        {
            case SUBJECT:
                seekStrategy =  new SubjectTerm(value);
                LOG.debug("Fetching emails with a subject of \"" + value + "\"");
View Full Code Here

        Map<String, Object> sstParams = IntrospectionSupport.extractProperties(parameters, "searchTerm.");
        if (!sstParams.isEmpty()) {
            // use SimpleSearchTerm as POJO to store the configuration and then convert that to the actual SearchTerm
            SimpleSearchTerm sst = new SimpleSearchTerm();
            setProperties(sst, sstParams);
            SearchTerm st = MailConverters.toSearchTerm(sst, getCamelContext().getTypeConverter());
            endpoint.setSearchTerm(st);
        }

        // sanity check that we know the mail server
        ObjectHelper.notEmpty(config.getHost(), "host");
View Full Code Here

TOP

Related Classes of javax.mail.search.SearchTerm

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.