protected void sendSecurityError(HttpServletResponse servletResponse) throws IOException { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_UNAUTHORIZED, "The request did not have a proper security token nor oauth message and unauthenticated " + "requests are not allowed")); }
@Override protected void doPut(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException { try { ContentTypes.checkContentTypes(ALLOWED_CONTENT_TYPES, servletRequest.getContentType()); executeRequest(servletRequest, servletResponse); } catch (ContentTypes.InvalidContentTypeException icte) { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_BAD_REQUEST, icte.getMessage())); } }
@Override protected void doPost(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException { try { ContentTypes.checkContentTypes(ALLOWED_CONTENT_TYPES, servletRequest.getContentType()); executeRequest(servletRequest, servletResponse); } catch (ContentTypes.InvalidContentTypeException icte) { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_BAD_REQUEST, icte.getMessage())); } }
protected void sendSecurityError(HttpServletResponse servletResponse) throws IOException { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_UNAUTHORIZED, "The request did not have a proper security token nor oauth message and unauthenticated " + "requests are not allowed")); }
@Override protected void doPost(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException { try { ContentTypes.checkContentTypes(ALLOWED_CONTENT_TYPES, servletRequest.getContentType()); executeRequest(servletRequest, servletResponse); } catch (ContentTypes.InvalidContentTypeException icte) { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_BAD_REQUEST, icte.getMessage())); } }
protected void sendSecurityError(HttpServletResponse servletResponse) throws IOException { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_UNAUTHORIZED, "The request did not have a proper security token nor oauth message and unauthenticated " + "requests are not allowed")); }
@Override protected void doPost(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException { try { ContentTypes.checkContentTypes(ALLOWED_CONTENT_TYPES, servletRequest.getContentType()); executeRequest(servletRequest, servletResponse); } catch (ContentTypes.InvalidContentTypeException icte) { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_BAD_REQUEST, icte.getMessage())); } }
protected void sendSecurityError(HttpServletResponse servletResponse) throws IOException { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_UNAUTHORIZED, "The request did not have a proper security token nor oauth message and unauthenticated " + "requests are not allowed")); }
@Override protected void doPut(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException { try { ContentTypes.checkContentTypes(ALLOWED_CONTENT_TYPES, servletRequest.getContentType()); executeRequest(servletRequest, servletResponse); } catch (ContentTypes.InvalidContentTypeException icte) { sendError(servletResponse, new ResponseItem(HttpServletResponse.SC_BAD_REQUEST, icte.getMessage())); } }