Java Doc for SessionProviderInternalFrame.java in  » Net » j2ssh » com » sshtools » common » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » j2ssh » com.sshtools.common.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sshtools.common.ui.SshToolsApplicationInternalFrame
   com.sshtools.common.ui.SessionProviderInternalFrame

SessionProviderInternalFrame
public class SessionProviderInternalFrame extends SshToolsApplicationInternalFrame implements SessionManager(Code)

This frame class embeds a SessionProvider and manages the connection on behalf of the caller. To invoke a session provider from an external application is a straight forward procedure. Assuming that the connection has already been established [see SshClient] you can invoke a frame using the following code:

 // Create an SshClient connection
 SshClient ssh = new SshClient();
 // Connection code goes here - see SshClient for more details
 SessionProviderFrame frame = new SessionProviderFrame(null,
 new SshToolsConnectionProfile(),
 ssh,
 SessionProviderFactory.getInstance().getProvider("sshterm"));
 frame.pack();
 frame.show();
 

author:
   Lee David Painter
version:
   $Id: SessionProviderInternalFrame.java,v 1.3 2003/09/24 11:26:32 martianx Exp $



Constructor Summary
public  SessionProviderInternalFrame(SshToolsConnectionProfile profile, SshClient ssh, SessionProvider provider)
     Construct a new Session Provider frame.

Method Summary
public  voidaddEventHandler(SshEventAdapter eventHandler)
     Implementation of the SessionManager method, simply calls the SshClient method addEventHandler.
public  voidallowChannelOpen(String channelType, ChannelFactory cf)
     Implemenation of the SessionManager method, simply calls the SshClient method allowChannelOpen.
public  voidapplyProfileChanges(SshToolsConnectionProfile profile)
     Implementation of the SessionManager method, this does nothing.
public  booleancanExit()
    
public  voidexit()
     Called by the framework when exiting.
public  ForwardingClientgetForwardingClient()
     Implementation of the SessionManager method, simply calls the SshClient method getForwardingClient.
public  SshToolsConnectionProfilegetProfile()
     Gets the profile currently attached to the frame.
public  intgetRemoteEOL()
    
public  StringgetServerId()
     Implemenation of the SessionManager method, simply calls the SshClient method getServerId.
public  SshToolsApplicationSessionPanelgetSessionPanel()
     Get the attached session provider panel.
public  booleaninitFrame(SshToolsApplication app)
    
public  booleanisConnected()
     Implementation of the SessionManager method, this simply calls the SshClient method isConnected.
public  booleanopenChannel(Channel channel)
     Implementation of the SessionManager method, this simply calls the SshClient method openChannel.
public  SessionChannelClientopenSession()
     Implementation of the SessionManager method, simply calls the SshClient openSession method.
public  SftpClientopenSftpClient()
     Implementation of the SessionManager method, this simply calls the SshClient method openSftpClient.
public  booleanrequestDisconnect()
     Implementation of the SessionManager method, this simply returns false.
public  byte[]sendGlobalRequest(String requestname, boolean wantreply, byte[] requestdata)
     Implementation of the SessionManager method, simply calls the SshClient method sendGlobalRequest.
public  voidsetDisconnectOnClose(boolean disconnectOnClose)
    


Constructor Detail
SessionProviderInternalFrame
public SessionProviderInternalFrame(SshToolsConnectionProfile profile, SshClient ssh, SessionProvider provider) throws IOException, SshToolsApplicationException(Code)
Construct a new Session Provider frame.
Parameters:
  app - The SshToolsApplication instance, can be null
Parameters:
  profile - The profile of the connection
Parameters:
  ssh - the client connection
Parameters:
  provider - the provider instance
throws:
  IOException -
throws:
  SshToolsApplicationException -




Method Detail
addEventHandler
public void addEventHandler(SshEventAdapter eventHandler)(Code)
Implementation of the SessionManager method, simply calls the SshClient method addEventHandler.
Parameters:
  eventHandler -



allowChannelOpen
public void allowChannelOpen(String channelType, ChannelFactory cf) throws IOException(Code)
Implemenation of the SessionManager method, simply calls the SshClient method allowChannelOpen.
Parameters:
  channelType -
Parameters:
  cf -
throws:
  IOException -



applyProfileChanges
public void applyProfileChanges(SshToolsConnectionProfile profile)(Code)
Implementation of the SessionManager method, this does nothing. Overide this method to provide additional functionality to save changes made by the session to the profile.
Parameters:
  profile -



canExit
public boolean canExit()(Code)
Called by the application framework when testing exit state



exit
public void exit()(Code)
Called by the framework when exiting. Can also be called to close the session.



getForwardingClient
public ForwardingClient getForwardingClient()(Code)
Implementation of the SessionManager method, simply calls the SshClient method getForwardingClient.



getProfile
public SshToolsConnectionProfile getProfile()(Code)
Gets the profile currently attached to the frame.



getRemoteEOL
public int getRemoteEOL()(Code)
Returns the guessed EOL setting of the remote computer



getServerId
public String getServerId()(Code)
Implemenation of the SessionManager method, simply calls the SshClient method getServerId.



getSessionPanel
public SshToolsApplicationSessionPanel getSessionPanel()(Code)
Get the attached session provider panel.



initFrame
public boolean initFrame(SshToolsApplication app) throws IOException, SshToolsApplicationException(Code)
Initialize the frame and open the remote session
Parameters:
  app - the application object, can be null
throws:
  IOException -
throws:
  SshToolsApplicationException -



isConnected
public boolean isConnected()(Code)
Implementation of the SessionManager method, this simply calls the SshClient method isConnected.



openChannel
public boolean openChannel(Channel channel) throws IOException(Code)
Implementation of the SessionManager method, this simply calls the SshClient method openChannel.
Parameters:
  channel -
throws:
  IOException -



openSession
public SessionChannelClient openSession() throws IOException(Code)
Implementation of the SessionManager method, simply calls the SshClient openSession method.
throws:
  IOException -



openSftpClient
public SftpClient openSftpClient() throws IOException(Code)
Implementation of the SessionManager method, this simply calls the SshClient method openSftpClient.
throws:
  IOException -



requestDisconnect
public boolean requestDisconnect()(Code)
Implementation of the SessionManager method, this simply returns false. Overide to change this behaviour



sendGlobalRequest
public byte[] sendGlobalRequest(String requestname, boolean wantreply, byte[] requestdata) throws IOException(Code)
Implementation of the SessionManager method, simply calls the SshClient method sendGlobalRequest.
Parameters:
  requestname -
Parameters:
  wantreply -
Parameters:
  requestdata -
throws:
  IOException -



setDisconnectOnClose
public void setDisconnectOnClose(boolean disconnectOnClose)(Code)
When the session closes, should the connection be disconnected?
Parameters:
  disconnectOnClose -



Fields inherited from com.sshtools.common.ui.SshToolsApplicationInternalFrame
final public static String PREF_LAST_FRAME_GEOMETRY(Code)(Java Doc)
protected StandardAction aboutAction(Code)(Java Doc)
protected StandardAction exitAction(Code)(Java Doc)
protected Log log(Code)(Java Doc)
protected StandardAction newWindowAction(Code)(Java Doc)
protected JSeparator toolSeparator(Code)(Java Doc)

Methods inherited from com.sshtools.common.ui.SshToolsApplicationInternalFrame
public void closeContainer()(Code)(Java Doc)
public SshToolsApplication getApplication()(Code)(Java Doc)
public SshToolsApplicationPanel getApplicationPanel()(Code)(Java Doc)
public void init(SshToolsApplication application, SshToolsApplicationPanel panel) throws SshToolsApplicationException(Code)(Java Doc)
public boolean isContainerVisible()(Code)(Java Doc)
public void setContainerTitle(String title)(Code)(Java Doc)
public void setContainerVisible(boolean visible)(Code)(Java Doc)
public void showAboutBox(boolean showAboutBox)(Code)(Java Doc)
public void showExitAction(boolean showExitAction)(Code)(Java Doc)
public void showNewWindowAction(boolean showNewWindowAction)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.