@Context

@GET Produces("application/xlm") public String getData(@Context HttpServletRequest request){ String ip = request.getRemoteAddr(); } Die Annotation @Context kann folgende Objekte injizieren: javax.ws.rs.core.HttpHeaders javax.ws.rs.core.UriInfo javax.ws.rs.core.Request javax.servlet.HttpServletRequest javax.servlet.HttpServletResponse javax.servlet.ServletConfig javax.servlet.ServletContext javax.ws.rs.core.SecurityContext dvAppBean.getServletContext().getInitParameter(Constants.XYZ_SEARCH_LIMIT)

Weiterlesen@Context

Database Definition

[code lang="sql"]use mydb go select s.object_id, s.name, s.schema_id, s.type, s.type_desc, object_definition(s.object_id) from sys.all_objects s where type IN ('P', 'V', 'FN', 'TR', 'IF', 'TF', 'U') and is_ms_shipped = 0 order by…

WeiterlesenDatabase Definition