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 Modifier and Type Field Description static StringREQUEST_TIMEOUT
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voiddoDefaultOptions(Binding binding, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidget(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voidonHttpException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HTTPException exception)voidpost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidput(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidsetRequestTimeout(Integer requestTimeout)
-
-
-
Field Detail
-
REQUEST_TIMEOUT
public static final String REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
delete
@RequestMapping(method=DELETE) public void delete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
get
@RequestMapping(method=GET) public void get(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
post
@RequestMapping(method=POST) public void post(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
put
@RequestMapping(method=PUT) public void put(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
onHttpException
protected void onHttpException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HTTPException exception) throws IOException- Throws:
IOException
-
doDefaultOptions
protected void doDefaultOptions(Binding binding, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOExceptionjavax.servlet.ServletException
-
-