Package org.n52.iceland.service
Class Service
java.lang.Object
org.n52.iceland.service.Service
@Configurable
@Controller
@RequestMapping(value="/service",
consumes="*/*",
produces="*/*")
public class Service
extends Object
The servlet of the Service which receives the incoming HttpPost and HttpGet requests and sends the operation result
documents to the client TODO review exception handling
- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voiddoDefaultOptions(Binding binding, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidget(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voidonHttpException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, HTTPException exception) voidpost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidput(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidsetRequestTimeout(Integer requestTimeout)
-
Field Details
-
REQUEST_TIMEOUT
- See Also:
-
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
delete
@RequestMapping(method=DELETE) public void delete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
get
@RequestMapping(method=GET) public void get(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
post
@RequestMapping(method=POST) public void post(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
put
@RequestMapping(method=PUT) public void put(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
onHttpException
protected void onHttpException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, HTTPException exception) throws IOException - Throws:
IOException
-
doDefaultOptions
protected void doDefaultOptions(Binding binding, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
setRequestTimeout
-