Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
G
- generateRest() - Method in class com.creativityfactory.swiftserver.app.Application
-
This method is responsible for automate the creation of web service based on models with annotation
Rest
. - get(String, HttpRequestHandler) - Method in class com.creativityfactory.swiftserver.app.Application
-
Maps a GET request with the specified URL pattern to the given HTTP request handler.
- Get - Class in com.creativityfactory.swiftserver.middleware.rest
-
This middleware is for sending all the existences of this resource.
- Get() - Constructor for class com.creativityfactory.swiftserver.middleware.rest.Get
- getAll() - Method in class com.creativityfactory.swiftserver.persistence.DefaultPersistence
-
Returns a list of all objects of the specified model type.
- getAll() - Method in interface com.creativityfactory.swiftserver.persistence.Persistence
-
Returns a list with all instances of the model class currently persisted.
- getAllFields(Class<?>) - Static method in class com.creativityfactory.swiftserver.utils.FieldUtils
-
Returns all the fields of a class including the inherited ones using reflection.
- getAttribute(String) - Method in class com.creativityfactory.swiftserver.request.HttpRequest
- getAttribute(String) - Method in interface com.creativityfactory.swiftserver.request.Request
-
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
- getById(Object) - Method in class com.creativityfactory.swiftserver.persistence.DefaultPersistence
-
Returns the object with the specified ID of the specified model type, or null if it does not exist.
- getById(Object) - Method in interface com.creativityfactory.swiftserver.persistence.Persistence
-
Returns the instance of the model class identified by the given ID.
- GetById - Class in com.creativityfactory.swiftserver.middleware.rest
-
This middleware is for a specific resource by id.
- GetById() - Constructor for class com.creativityfactory.swiftserver.middleware.rest.GetById
- getDateHeader(String) - Method in class com.creativityfactory.swiftserver.request.HttpRequest
- getDateHeader(String) - Method in interface com.creativityfactory.swiftserver.request.Request
-
Returns the value of the specified request header as a long value that represents a Date object.
- getError() - Method in class com.creativityfactory.swiftserver.error.ErrorResponse
- getIdField(Class<?>) - Static method in class com.creativityfactory.swiftserver.utils.IdUtils
-
Returns the ID field of a given class annotated with the
Id
annotation. - getIdTypeFromModel(Class<?>) - Static method in class com.creativityfactory.swiftserver.utils.IdUtils
-
Given a model class, this method returns the type of its ID field.
- getInstance() - Static method in class com.creativityfactory.swiftserver.persistence.DefaultDataSource
-
Returns an instance of the DefaultDataSource class.
- getInstance(Class<?>) - Static method in class com.creativityfactory.swiftserver.persistence.SingletonDataSource
-
Returns instance of persistence object for the given class.
- getLimit(Integer) - Method in class com.creativityfactory.swiftserver.persistence.DefaultPersistence
-
Returns a list of objects of the specified model type, up to the given limit.
- getLimit(Integer) - Method in interface com.creativityfactory.swiftserver.persistence.Persistence
-
Returns a limited list with instances of the model class currently persisted.
- getMessage() - Method in class com.creativityfactory.swiftserver.error.ErrorResponse
- getPath() - Method in class com.creativityfactory.swiftserver.error.ErrorResponse
- getRequest() - Method in class com.creativityfactory.swiftserver.response.HttpResponse
- getStatus() - Method in class com.creativityfactory.swiftserver.error.ErrorResponse
- getTimestamp() - Method in class com.creativityfactory.swiftserver.error.ErrorResponse
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form