- GET - Annotation Type in net.sf.serfj.annotations
-
Annotation used to mark a resource method that responds to HTTP GET requests.
- getBoolean(ConfigParam) - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve el valor del parametro como un Boolean.
- getConfigFilePath() - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve la ruta del fichero de configuracion.
- getContentTransferEncoding() - Method in class net.sf.serfj.serializers.Base64Serializer
-
Returns 'base64' as content-transfer-encoding.
- getContentType() - Method in class net.sf.serfj.serializers.Base64Serializer
-
- getContentType() - Method in class net.sf.serfj.serializers.FileSerializer
-
Content type that will be used in the response.
- getContentType() - Method in class net.sf.serfj.serializers.JsonSerializer
-
Returns "application/json" content-type.
- getContentType() - Method in interface net.sf.serfj.serializers.Serializer
-
Content type that will be used in the response.
- getContentType() - Method in class net.sf.serfj.serializers.XmlSerializer
-
Returns "text/xml" content-type.
- getContext() - Method in class net.sf.serfj.ResponseHelper
-
Gets ServletContext
object related to this request.
- getDefaultValue() - Method in class net.sf.serfj.config.ConfigParam
-
Obtiene el valor por defecto del parametro.
- getExtension(String) - Static method in class net.sf.serfj.finders.SerializerFinder
-
Returns a extension from a content-type.
- getExtension() - Method in class net.sf.serfj.ResponseHelper
-
Gets the URL extension, if any.
- getExtension() - Method in class net.sf.serfj.RestController
-
Gets the URL extension, if any.
- getExtension(String) - Method in class net.sf.serfj.util.UrlUtils
-
Gets the extension used in the URL, if any.
- getId() - Method in class net.sf.serfj.ResponseHelper
-
Gets the value of an Id for the current resource.
/sessions/1 -> Id: 1, identifier of 'session'
/sessions/1/users/2 -> Id: 2, identifier of 'users'
- getId(String) - Method in class net.sf.serfj.ResponseHelper
-
Gets the value of an Id given its resource's name.
/sessions/1 -> Id: 1, Resource: session
/sessions/1/users/2 -> Id: 2, Resource: user
- getId() - Method in class net.sf.serfj.RestController
-
Gets the value of an Id for the current resource.
/sessions/1 -> Id: 1, identifier of 'session'
/sessions/1/users/2 -> Id: 2, identifier of 'users'
- getId(String) - Method in class net.sf.serfj.RestController
-
Gets the value of an Id given its resource's name.
/sessions/1 -> Id: 1, Resource: session
/sessions/1/users/2 -> Id: 2, Resource: user
- getInstance() - Static method in class net.sf.serfj.util.UrlUtils
-
Returns the unique instance of this class.
- getInt(ConfigParam) - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve el valor del parametro como un int.
- getLong(ConfigParam) - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve el valor del parametro como un Long.
- getName() - Method in class net.sf.serfj.config.ConfigParam
-
Obtiene el identificador del parametro.
- getParam(String) - Method in class net.sf.serfj.ResponseHelper
-
Gets a the value of a parameter that came in the URL or in the request.
- getParam(String) - Method in class net.sf.serfj.RestController
-
Gets a the value of a parameter that came in the URL or in the request.
- getParams() - Method in class net.sf.serfj.ResponseHelper
-
Gets a Map containing all the parameters in the query string, and all the
attributes in the request.
- getParams() - Method in class net.sf.serfj.RestController
-
Gets a Map containing all the parameters in the query string, and all the
attributes in the request.
- getPrefix() - Method in class net.sf.serfj.finders.ResourceFinder
-
- getRemoteAddress() - Method in class net.sf.serfj.RestController
-
Returns the remote address with including protocol.
- getRequest(String, Map<String, String>) - Method in class net.sf.serfj.client.Client
-
Do a GET HTTP request to the given REST-URL.
- getRequest() - Method in class net.sf.serfj.ResponseHelper
-
Gets HttpServletRequest
object related to this request.
- getResponse() - Method in class net.sf.serfj.ResponseHelper
-
Gets HttpServletResponse
object related to this request.
- getResponseHelper() - Method in class net.sf.serfj.RestController
-
Gets the ResponseHelper associated to the request.
When a controller's action is called, a ResponseHelper is set through RestController.setResponseHelper(ResponseHelper response)
so the action method will be able to access objects like HttpServletResponse, ServletContext and HttpServletRequest.
- getSerializer() - Method in class net.sf.serfj.ResponseHelper
-
Gets the Serializer class, if any.
- getSerializer() - Method in class net.sf.serfj.RestController
-
Gets the Serializer class, if any.
- getStatus() - Method in exception net.sf.serfj.client.WebServiceException
-
Get the exception's status.
- getString(ConfigParam) - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve el valor del parametro como un String.
- getStringParam(String) - Method in class net.sf.serfj.RestController
-
Returns parameter's value that is a String.
- getUtils() - Method in class net.sf.serfj.finders.ResourceFinder
-
- getValue(ConfigParam) - Method in class net.sf.serfj.config.SystemConfig
-
Devuelve el valor del parametro de configuracion que se recibe.
- sendFile() - Method in class net.sf.serfj.ResponseHelper
-
- sendFile(File, OutputStream) - Method in class net.sf.serfj.serializers.FileSerializer
-
Write a file to an OuputStream.
- serialize(Object) - Method in class net.sf.serfj.ResponseHelper
-
Serialize an object.
- serialize() - Method in class net.sf.serfj.ResponseHelper
-
- serialize(Object) - Method in class net.sf.serfj.RestController
-
Serialize an object.
- serialize(Object) - Method in class net.sf.serfj.serializers.Base64Serializer
-
Serialize object to an encoded base64 string.
- serialize(Object) - Method in class net.sf.serfj.serializers.JsonSerializer
-
Serializes an object to Json.
- serialize(Object) - Method in interface net.sf.serfj.serializers.ObjectSerializer
-
Serialize an object in the format that the implementation requires.
- serialize(Object) - Method in class net.sf.serfj.serializers.XmlSerializer
-
Serializes an object to XML using the default XStream converter.
- Serializer - Interface in net.sf.serfj.serializers
-
Interface for Serializers.
- SerializerFinder - Class in net.sf.serfj.finders
-
Finds a serializer for a request.
- SerializerFinder(String) - Constructor for class net.sf.serfj.finders.SerializerFinder
-
- SerializerFinder(Config, String) - Constructor for class net.sf.serfj.finders.SerializerFinder
-
- service(HttpServletRequest, HttpServletResponse) - Method in class net.sf.serfj.RestServlet
-
Parses the request to get information about what controller is trying to call, then
invoke the action from that controller (if any), and finally gives an answer.
Basically it only dispatchs the request to a controller.
- ServletHelper - Class in net.sf.serfj
-
- ServletHelper() - Constructor for class net.sf.serfj.ServletHelper
-
- setAttachmentFilename(String) - Method in class net.sf.serfj.ResponseHelper
-
Sets the filename for the file that will be sent.
- setContentType(String) - Method in class net.sf.serfj.ResponseHelper
-
Sets the contentType in case there isn't another FileSerializer implementation.
- setFile(File) - Method in class net.sf.serfj.ResponseHelper
-
Sets the file to send to the client.
- setFile(File, String, String) - Method in class net.sf.serfj.ResponseHelper
-
Sets the file to send to the client.
- setResponseHelper(ResponseHelper) - Method in class net.sf.serfj.RestController
-
- singularize(String) - Method in class net.sf.serfj.util.UrlUtils
-
Gets the singular of a plural.
- SUFFIX_CONTROLLER - Static variable in class net.sf.serfj.Config
-
Suffix used for controller classes
- SUFFIX_SERIALIZER - Static variable in class net.sf.serfj.Config
-
Suffix used for serializer classes
- SystemConfig - Class in net.sf.serfj.config
-
Lee la configuraciĆ³n de un sistema.
- SystemConfig(String) - Constructor for class net.sf.serfj.config.SystemConfig
-
Constructor.