mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-224: Remove @author tags from codebase.
This commit is contained in:
		| @@ -24,8 +24,6 @@ import org.apache.guacamole.environment.Environment; | ||||
|  | ||||
| /** | ||||
|  * Guice module which binds the base Guacamole server environment. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class EnvironmentModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -38,8 +38,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * A ServletContextListener to listen for initialization of the servlet context | ||||
|  * in order to set up dependency injection. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class GuacamoleServletContextListener extends GuiceServletContextListener { | ||||
|  | ||||
|   | ||||
| @@ -35,8 +35,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * Contains Guacamole-specific user information which is tied to the current | ||||
|  * session, such as the UserContext and current clipboard state. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class GuacamoleSession { | ||||
|  | ||||
|   | ||||
| @@ -30,8 +30,6 @@ import org.apache.guacamole.protocol.GuacamoleConfiguration; | ||||
|  * Mapping of username/password pair to configuration set. In addition to basic | ||||
|  * storage of the username, password, and configurations, this class also | ||||
|  * provides password validation functions. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class Authorization { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.xml.sax.SAXException; | ||||
|  | ||||
| /** | ||||
|  * TagHandler for the "authorize" element. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class AuthorizeTagHandler implements TagHandler { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.xml.sax.SAXException; | ||||
|  | ||||
| /** | ||||
|  * TagHandler for the "connection" element. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class ConnectionTagHandler implements TagHandler { | ||||
|  | ||||
|   | ||||
| @@ -44,8 +44,6 @@ import org.xml.sax.helpers.XMLReaderFactory; | ||||
|  * Authenticates users against a static list of username/password pairs. | ||||
|  * Each username/password may be associated with multiple configurations. | ||||
|  * This list is stored in an XML file which is reread if modified. | ||||
|  * | ||||
|  * @author Michael Jumper, Michal Kotas | ||||
|  */ | ||||
| public class FileAuthenticationProvider extends SimpleAuthenticationProvider { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.xml.sax.SAXException; | ||||
|  | ||||
| /** | ||||
|  * TagHandler for the "param" element. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class ParamTagHandler implements TagHandler { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.xml.sax.SAXException; | ||||
|  | ||||
| /** | ||||
|  * TagHandler for the "protocol" element. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class ProtocolTagHandler implements TagHandler { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import java.util.Map; | ||||
|  | ||||
| /** | ||||
|  * Mapping of all usernames to corresponding authorizations. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class UserMapping { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.xml.sax.SAXException; | ||||
|  | ||||
| /** | ||||
|  * TagHandler for the "user-mapping" element. | ||||
|  * | ||||
|  * @author Mike Jumper | ||||
|  */ | ||||
| public class UserMappingTagHandler implements TagHandler { | ||||
|  | ||||
|   | ||||
| @@ -35,8 +35,6 @@ import org.slf4j.LoggerFactory; | ||||
|  * Provides a safe wrapper around an AuthenticationProvider subclass, such that | ||||
|  * authentication attempts can cleanly fail, and errors can be properly logged, | ||||
|  * even if the AuthenticationProvider cannot be instantiated. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class AuthenticationProviderFacade implements AuthenticationProvider { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
| /** | ||||
|  * A ClassLoader implementation which finds classes within .jar files within a | ||||
|  * given directory. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class DirectoryClassLoader extends URLClassLoader { | ||||
|  | ||||
|   | ||||
| @@ -46,8 +46,6 @@ import org.apache.guacamole.resource.Resource; | ||||
| /** | ||||
|  * A Guacamole extension, which may provide custom authentication, static | ||||
|  * files, theming/branding, etc. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class Extension { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.codehaus.jackson.annotate.JsonProperty; | ||||
| /** | ||||
|  * Java representation of the JSON manifest contained within every Guacamole | ||||
|  * extension, identifying an extension and describing its contents. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ExtensionManifest { | ||||
|  | ||||
|   | ||||
| @@ -44,8 +44,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * A Guice Module which loads all extensions within the | ||||
|  * GUACAMOLE_HOME/extensions directory, if any. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ExtensionModule extends ServletModule { | ||||
|  | ||||
|   | ||||
| @@ -45,8 +45,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * Service which provides access to all built-in languages as resources, and | ||||
|  * allows other resources to be added or overlaid against existing resources. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class LanguageResourceService { | ||||
|  | ||||
|   | ||||
| @@ -28,8 +28,6 @@ import org.apache.guacamole.resource.Resource; | ||||
| /** | ||||
|  * Service which provides access to all HTML patches as resources, and allows | ||||
|  * other patch resources to be added. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PatchResourceService { | ||||
|  | ||||
|   | ||||
| @@ -31,8 +31,6 @@ import org.slf4j.LoggerFactory; | ||||
|  | ||||
| /** | ||||
|  * Initializes the logging subsystem. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class LogModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.properties.GuacamoleProperty; | ||||
|  * compatibility with the behavior of Java properties in general, only | ||||
|  * whitespace at the beginning of each value is ignored; trailing whitespace | ||||
|  * becomes part of the value. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class StringSetProperty implements GuacamoleProperty<Set<String>> { | ||||
|  | ||||
|   | ||||
| @@ -23,8 +23,6 @@ package org.apache.guacamole.resource; | ||||
|  * Base abstract resource implementation which provides an associated mimetype, | ||||
|  * and modification time. Classes which extend AbstractResource must provide | ||||
|  * their own InputStream, however. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class AbstractResource implements Resource { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import java.io.InputStream; | ||||
|  | ||||
| /** | ||||
|  * A resource which contains a defined byte array. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ByteArrayResource extends AbstractResource { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import java.io.InputStream; | ||||
| /** | ||||
|  * A resource which is located within the classpath of an arbitrary | ||||
|  * ClassLoader. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ClassPathResource extends AbstractResource { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import java.io.InputStream; | ||||
| /** | ||||
|  * An arbitrary resource that can be served to a user via HTTP. Resources are | ||||
|  * anonymous but have a defined mimetype and corresponding input stream. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface Resource { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.slf4j.LoggerFactory; | ||||
|  * method is correctly supported, and HTTP 304 ("Not Modified") responses will | ||||
|  * be properly returned for GET requests depending on the last time the | ||||
|  * resource was modified. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ResourceServlet extends HttpServlet { | ||||
|  | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import java.util.Iterator; | ||||
|  | ||||
| /** | ||||
|  * A resource which is the logical concatenation of other resources. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SequenceResource extends AbstractResource { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import javax.servlet.ServletContext; | ||||
| /** | ||||
|  * A resource which is located within the classpath associated with another | ||||
|  * class. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class WebApplicationResource extends AbstractResource { | ||||
|  | ||||
|   | ||||
| @@ -34,9 +34,6 @@ import org.apache.guacamole.tunnel.GuacamoleStreamException; | ||||
|  | ||||
| /** | ||||
|  * Describes an error that occurred within a REST endpoint. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIError { | ||||
|  | ||||
|   | ||||
| @@ -29,9 +29,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
|  * within the context of the REST API, an appropriate HTTP status code will be | ||||
|  * set for the failing response, and the details of the error will be exposed in | ||||
|  * the body of the response as an APIError structure. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIException extends WebApplicationException { | ||||
|  | ||||
|   | ||||
| @@ -22,9 +22,9 @@ package org.apache.guacamole.rest; | ||||
| /** | ||||
|  * An object for representing the body of a HTTP PATCH method. | ||||
|  * See https://tools.ietf.org/html/rfc6902 | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  * @param <T> The type of object being patched. | ||||
|  * | ||||
|  * @param <T> | ||||
|  *     The type of object being patched. | ||||
|  */ | ||||
| public class APIPatch<T> { | ||||
|      | ||||
|   | ||||
| @@ -31,8 +31,6 @@ import javax.ws.rs.core.MultivaluedMap; | ||||
| /** | ||||
|  * Wrapper for HttpServletRequest which uses a given MultivaluedMap to provide | ||||
|  * the values of all request parameters. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIRequest extends HttpServletRequestWrapper { | ||||
|  | ||||
|   | ||||
| @@ -28,10 +28,8 @@ import javax.ws.rs.HttpMethod; | ||||
|  | ||||
| /** | ||||
|  * An annotation for using the HTTP PATCH method in the REST endpoints. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| @Target({ElementType.METHOD})  | ||||
| @Retention(RetentionPolicy.RUNTIME)  | ||||
| @HttpMethod("PATCH")  | ||||
| public @interface PATCH {}  | ||||
| public @interface PATCH {}  | ||||
|   | ||||
| @@ -43,9 +43,6 @@ import org.slf4j.LoggerFactory; | ||||
|  * interface. The various types of GuacamoleExceptions are automatically | ||||
|  * translated into appropriate HTTP responses, including JSON describing the | ||||
|  * error that occurred. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class RESTExceptionWrapper implements MethodInterceptor { | ||||
|  | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
|  * annotation like <code>@GET</code> or <code>@POST</code>. Any method which | ||||
|  * throws GuacamoleException and is annotated with an annotation that is | ||||
|  * annotated with <code>@HttpMethod</code> will match. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class RESTMethodMatcher extends AbstractMatcher<Method> { | ||||
|  | ||||
|   | ||||
| @@ -48,9 +48,6 @@ import org.webjars.servlet.WebjarsServlet; | ||||
| /** | ||||
|  * A Guice Module to set up the servlet mappings and authentication-specific | ||||
|  * dependency injection for the Guacamole REST API. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class RESTServiceModule extends ServletModule { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.net.auth.ActiveConnection; | ||||
| /** | ||||
|  * Information related to active connections which may be exposed through the | ||||
|  * REST endpoints. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIActiveConnection { | ||||
|  | ||||
|   | ||||
| @@ -28,8 +28,6 @@ import org.apache.guacamole.net.auth.credentials.UserCredentials; | ||||
|  * The object returned by REST API calls to define a full set of valid | ||||
|  * credentials, including field definitions and corresponding expected | ||||
|  * values. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIUserCredentials { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on a Directory of | ||||
|  * ActiveConnections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * Guice Module which configures injections required for handling | ||||
|  * ActiveConnection resources via the REST API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -28,8 +28,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
|  * Translator which converts between ActiveConnection objects and | ||||
|  * APIActiveConnection objects. As ActiveConnection objects are read-only, only | ||||
|  * toExternalObject() is implemented here. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionObjectTranslator | ||||
|         implements DirectoryObjectTranslator<ActiveConnection, APIActiveConnection> { | ||||
|   | ||||
| @@ -41,8 +41,6 @@ import org.apache.guacamole.rest.directory.DirectoryResourceFactory; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on an existing | ||||
|  * ActiveConnection. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -21,8 +21,6 @@ package org.apache.guacamole.rest.auth; | ||||
|  | ||||
| /** | ||||
|  * A simple object to represent an auth token/username pair in the API. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class APIAuthenticationResponse { | ||||
|      | ||||
|   | ||||
| @@ -25,9 +25,6 @@ import java.util.List; | ||||
| /** | ||||
|  * A simple object which describes the result of an authentication operation, | ||||
|  * including the resulting token. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIAuthenticationResult { | ||||
|  | ||||
|   | ||||
| @@ -21,8 +21,6 @@ package org.apache.guacamole.rest.auth; | ||||
|  | ||||
| /** | ||||
|  * Generates an auth token for an authenticated user. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public interface AuthTokenGenerator { | ||||
|      | ||||
|   | ||||
| @@ -41,9 +41,6 @@ import org.slf4j.LoggerFactory; | ||||
|  | ||||
| /** | ||||
|  * A service for performing authentication checks in REST endpoints. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class AuthenticationService { | ||||
|  | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * A HashMap-based implementation of the TokenSessionMap with support for | ||||
|  * session timeouts. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class HashTokenSessionMap implements TokenSessionMap { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import javax.xml.bind.DatatypeConverter; | ||||
|  | ||||
| /** | ||||
|  * An implementation of the AuthTokenGenerator based around SecureRandom. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class SecureRandomAuthTokenGenerator implements AuthTokenGenerator { | ||||
|  | ||||
|   | ||||
| @@ -46,9 +46,6 @@ import org.slf4j.LoggerFactory; | ||||
|  | ||||
| /** | ||||
|  * A service for managing auth tokens via the Guacamole REST API. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Path("/tokens") | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.GuacamoleSession; | ||||
| /** | ||||
|  * Represents a mapping of auth token to Guacamole session for the REST  | ||||
|  * authentication system. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public interface TokenSessionMap { | ||||
|      | ||||
|   | ||||
| @@ -30,8 +30,6 @@ import org.apache.guacamole.rest.sharingprofile.APISharingProfile; | ||||
|  | ||||
| /** | ||||
|  * A simple connection to expose through the REST endpoints. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
|   | ||||
| @@ -33,8 +33,6 @@ import org.apache.guacamole.protocol.GuacamoleConfiguration; | ||||
| /** | ||||
|  * A wrapper to make an APIConnection look like a Connection. Useful where a | ||||
|  * org.apache.guacamole.net.auth.Connection is required. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class APIConnectionWrapper implements Connection { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on a Directory of | ||||
|  * Connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * Guice Module which configures injections required for handling Connection | ||||
|  * resources via the REST API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
| /** | ||||
|  * Translator which converts between Connection objects and APIConnection | ||||
|  * objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionObjectTranslator | ||||
|         implements DirectoryObjectTranslator<Connection, APIConnection> { | ||||
|   | ||||
| @@ -54,8 +54,6 @@ import org.apache.guacamole.rest.sharingprofile.APISharingProfile; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on an existing | ||||
|  * Connection. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.rest.connection.APIConnection; | ||||
|  | ||||
| /** | ||||
|  * A simple connection group to expose through the REST endpoints. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.protocol.GuacamoleClientInformation; | ||||
| /** | ||||
|  * A wrapper to make an APIConnection look like a ConnectionGroup. | ||||
|  * Useful where a org.apache.guacamole.net.auth.ConnectionGroup is required. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class APIConnectionGroupWrapper implements ConnectionGroup { | ||||
|  | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on a Directory of | ||||
|  * ConnectionGroups. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * Guice Module which configures injections required for handling | ||||
|  * ConnectionGroup resources via the REST API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
| /** | ||||
|  * Translator which converts between ConnectionGroup objects and | ||||
|  * APIConnectionGroup objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupObjectTranslator | ||||
|         implements DirectoryObjectTranslator<ConnectionGroup, APIConnectionGroup> { | ||||
|   | ||||
| @@ -39,8 +39,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on an existing | ||||
|  * ConnectionGroup. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -42,8 +42,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * Provides access to the entire tree of connection groups, their | ||||
|  * connections, and any associated sharing profiles. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupTree { | ||||
|  | ||||
|   | ||||
| @@ -35,7 +35,6 @@ import org.apache.guacamole.net.auth.Identifiable; | ||||
|  * Guacamole object that is contained within a Directory, such as modification, | ||||
|  * deletion, or individual retrieval. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The type of object that this DirectoryObjectResource represents. To | ||||
|  *     avoid coupling the REST API too tightly to the extension API, these | ||||
|   | ||||
| @@ -26,7 +26,6 @@ import org.apache.guacamole.net.auth.Identifiable; | ||||
|  * Provides bidirectional conversion between REST-specific objects and the | ||||
|  * internal objects defined by the Guacamole extension API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The type of object converted by this DirectoryObjectTranslator which is | ||||
|  *     not necessarily intended for use in interchange. | ||||
|   | ||||
| @@ -53,7 +53,6 @@ import org.apache.guacamole.rest.PATCH; | ||||
|  * number of child DirectoryObjectResources, which are created with the factory | ||||
|  * provided at the time of this object's construction. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The type of object contained within the Directory that this | ||||
|  *     DirectoryResource exposes. To avoid coupling the REST API too tightly to | ||||
|   | ||||
| @@ -33,7 +33,6 @@ import org.apache.guacamole.net.auth.Identifiable; | ||||
|  * determined by the set of identifiers provided when the DirectoryView is | ||||
|  * created. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <ObjectType> | ||||
|  *     The type of objects accessible through this DirectoryView. | ||||
|  */ | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.net.auth.ConnectionRecord; | ||||
|  | ||||
| /** | ||||
|  * A connection record which may be exposed through the REST endpoints. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIConnectionRecord { | ||||
|  | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.rest.APIException; | ||||
| /** | ||||
|  * A sort predicate which species the property to use when sorting connection | ||||
|  * records, along with the sort order. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APIConnectionRecordSortPredicate { | ||||
|  | ||||
|   | ||||
| @@ -35,8 +35,6 @@ import org.apache.guacamole.net.auth.UserContext; | ||||
| /** | ||||
|  * A REST resource for retrieving and managing the history records of Guacamole | ||||
|  * objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -30,8 +30,6 @@ import org.apache.guacamole.extension.LanguageResourceService; | ||||
|  | ||||
| /** | ||||
|  * A REST Service for handling the listing of languages. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| @Path("/languages") | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.resource.Resource; | ||||
|  | ||||
| /** | ||||
|  * A REST Service for handling the listing of HTML patches. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Path("/patches") | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -29,7 +29,6 @@ import org.apache.guacamole.net.auth.permission.PermissionSet; | ||||
|  * A set of changes to be applied to a PermissionSet, describing the set of | ||||
|  * permissions being added and removed. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionType> | ||||
|  *     The type of permissions being added and removed. | ||||
|  */ | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.rest.PATCH; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on the permissions | ||||
|  * granted to an existing User. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.protocols.ProtocolInfo; | ||||
| /** | ||||
|  * A REST resource which provides access to descriptions of the properties, | ||||
|  * attributes, etc. of objects within a particular UserContext. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.auth.AuthenticationService; | ||||
| /** | ||||
|  * A REST service which exposes all data associated with Guacamole users' | ||||
|  * sessions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Path("/session") | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.rest.tunnel.TunnelCollectionResourceFactory; | ||||
| /** | ||||
|  * A REST resource which exposes all data associated with a Guacamole user's | ||||
|  * session via the underlying UserContexts. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.GuacamoleSession; | ||||
| /** | ||||
|  * Factory which creates resources that expose the contents of a given | ||||
|  * GuacamoleSession. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface SessionResourceFactory { | ||||
|  | ||||
|   | ||||
| @@ -47,8 +47,6 @@ import org.apache.guacamole.rest.user.APIUser; | ||||
|  | ||||
| /** | ||||
|  * A REST resource which exposes the contents of a particular UserContext. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.net.auth.UserContext; | ||||
| /** | ||||
|  * Factory which creates resources that expose the contents of a given | ||||
|  * UserContext. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface UserContextResourceFactory { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.net.auth.SharingProfile; | ||||
|  | ||||
| /** | ||||
|  * The external representation used by the REST API for sharing profiles. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||||
| public class APISharingProfile { | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.net.auth.SharingProfile; | ||||
|  * Changes to the underlying APISharingProfile are reflected immediately in the | ||||
|  * values exposed by the SharingProfile interface, and changes made through the | ||||
|  * SharingProfile interface immediately affect the underlying APISharingProfile. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class APISharingProfileWrapper implements SharingProfile { | ||||
|  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on a Directory of | ||||
|  * SharingProfiles. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.directory.DirectoryResourceFactory; | ||||
| /** | ||||
|  * Guice Module which configures injections required for handling SharingProfile | ||||
|  * resources via the REST API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfileModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
| /** | ||||
|  * Translator which converts between SharingProfile objects and | ||||
|  * APISharingProfile objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfileObjectTranslator | ||||
|         implements DirectoryObjectTranslator<SharingProfile, APISharingProfile> { | ||||
|   | ||||
| @@ -43,8 +43,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on an existing | ||||
|  * SharingProfile. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -36,8 +36,6 @@ import org.apache.guacamole.tunnel.StreamInterceptingTunnel; | ||||
| /** | ||||
|  * A REST resource providing access to a Guacamole protocol-level stream | ||||
|  * within a tunnel. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -37,8 +37,6 @@ import org.apache.guacamole.tunnel.UserTunnel; | ||||
|  | ||||
| /** | ||||
|  * A REST resource which exposes the active tunnels of a Guacamole session. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.GuacamoleSession; | ||||
| /** | ||||
|  * Factory which creates resources that expose the collection of tunnels | ||||
|  * contained within a given GuacamoleSession. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface TunnelCollectionResourceFactory { | ||||
|  | ||||
|   | ||||
| @@ -41,8 +41,6 @@ import org.apache.guacamole.tunnel.UserTunnel; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available for an individual | ||||
|  * tunnel. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.tunnel.UserTunnel; | ||||
| /** | ||||
|  * Factory which creates resources that expose the contents of a given | ||||
|  * tunnel. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface TunnelResourceFactory { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.net.auth.User; | ||||
|  | ||||
| /** | ||||
|  * A simple User to expose through the REST endpoints. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
|   | ||||
| @@ -20,8 +20,6 @@ package org.apache.guacamole.rest.user; | ||||
|  | ||||
| /** | ||||
|  * All the information necessary for the password update operation on a user. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class APIUserPasswordUpdate { | ||||
|      | ||||
|   | ||||
| @@ -31,8 +31,6 @@ import org.apache.guacamole.net.auth.permission.SystemPermissionSet; | ||||
|  * org.apache.guacamole.net.auth.User is required. As a simple wrapper for | ||||
|  * APIUser, access to permissions is not provided. Any attempt to access or | ||||
|  * manipulate permissions on an APIUserWrapper will result in an exception. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class APIUserWrapper implements User { | ||||
|      | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on a Directory of | ||||
|  * Users. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.rest.directory.DirectoryResource; | ||||
| /** | ||||
|  * Guice Module which configures injections required for handling User resources | ||||
|  * via the REST API. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class UserModule extends AbstractModule { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.rest.directory.DirectoryObjectTranslator; | ||||
|  | ||||
| /** | ||||
|  * Translator which converts between User objects and APIUser objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class UserObjectTranslator | ||||
|         implements DirectoryObjectTranslator<User, APIUser> { | ||||
|   | ||||
| @@ -43,8 +43,6 @@ import org.apache.guacamole.rest.permission.PermissionSetResource; | ||||
| /** | ||||
|  * A REST resource which abstracts the operations available on an existing | ||||
|  * User. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| @Produces(MediaType.APPLICATION_JSON) | ||||
| @Consumes(MediaType.APPLICATION_JSON) | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.protocol.GuacamoleStatus; | ||||
|  * A generic exception thrown when an intercepted Guacamole stream has closed | ||||
|  * with an error condition. Guacamole streams report errors using the "ack" | ||||
|  * instruction, which provides a status code and human-readable message. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class GuacamoleStreamException extends GuacamoleServerException { | ||||
|  | ||||
|   | ||||
| @@ -28,7 +28,6 @@ import org.apache.guacamole.protocol.GuacamoleStatus; | ||||
|  * stream-type object which will produce or consume the data sent over the | ||||
|  * intercepted Guacamole stream. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <T> | ||||
|  *     The type of object which will produce or consume the data sent over the | ||||
|  *     intercepted Guacamole stream. Usually, this will be either InputStream | ||||
|   | ||||
| @@ -29,7 +29,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * Map-like storage for intercepted Guacamole streams. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <T> | ||||
|  *     The type of object which will produce or consume the data sent over the | ||||
|  *     intercepted Guacamole stream. Usually, this will be either InputStream | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user