/*
- * jSite -
+ * jSite -
* Copyright (C) 2006 David Roden
*
* This program is free software; you can redistribute it and/or modify
/**
* Interface for freenet-related operations.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class Freenet7Interface {
private Connection connection;
/**
- * Sets the hostname of the node. The default port for FCP2 connections ({@link Node#DEFAULT_PORT})
- * is used.
- *
+ * Sets the hostname of the node. The default port for FCP2 connections (
+ * {@link Node#DEFAULT_PORT}) is used.
+ *
* @param hostname
* The hostname of the node
*/
/**
* Sets the hostname and the port of the node.
- *
+ *
* @param hostname
* The hostname of the node
* @param port
/**
* Sets hostname and port from the given node.
- *
+ *
* @param node
* The node to get the hostname and port from
*/
/**
* Returns the node this interface is connecting to.
- *
+ *
* @return The node
*/
public Node getNode() {
/**
* Creates a new connection to the current node with the given identifier.
- *
+ *
* @param identifier
* The identifier of the connection
* @return The connection to the node
/**
* Checks whether the current node is connected. If the node is not
* connected, a connection will be tried.
- *
+ *
* @return <code>true</code> if the node is connected, <code>false</code>
* otherwise
* @throws IOException
/**
* Generates an SSK key pair.
- *
+ *
* @return An array of strings, the first one being the generated private
* (insert) URI and the second one being the generated public
* (request) URI
/**
* Checks whether the interface has already been configured with a node.
- *
+ *
* @return <code>true</code> if this interface already has a node set,
* <code>false</code> otherwise
*/