Advertisement
xlrnxnlx

VBConnection01

Jul 31st, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public class Main{
  2.     public static void main( String[] args ){
  3.         try {
  4.             VBConnection con = new VBConnection( "rnxn", "senha123" );
  5.             con.setLoginURL( "http://www.FORUMFORUM.com.br/forum/login.php" ); /* Exemplo */
  6.            
  7.             if( con.connect() ){
  8.                 // conectou, faz algo...
  9.             }
  10.         } catch( VBConnectionException e ){
  11.             // tratamento de exceções.
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement