Session getDebug Example

Session class getDebug example. This example shows you how to use getDebug method.


Session class getDebug example. public boolean getDebug() Get the debug setting for this Session.

Here is the code
/*
 * @ # GetDebug.java
 * A class repersenting use to GetDebug method 
 * of Session class in javax.mail package
 * version 05 July 2008
 * author Rose India 
 */
package session;

import java.util.*;
import javax.mail.*;

public class GetDebug {

    public static void main(String args[]) throws Exception {

        Properties properties = System.getProperties();

        Session session = Session.getDefaultInstance(properties);

        System.out.println("Debug setting for this Session. " + session.getDebug());
    }
}

Output
Debug setting for this Session. false

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US