Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sdfds
- fds
- fds
- public void returnStatus(int statusCode)
- {
- Timer t = statusTag.create().start();
- setResponding();
- if (statusCode == Response.SC_NO_CONTENT
- && representor instanceof NoContentRepresentor)
- {
- statusCode = Response.SC_OK;
- this.statusCode = statusCode;
- setStatus(statusCode);
- ((NoContentRepresentor)representor).write(contentType, getRequest(), this);
- }
- else
- {
- this.statusCode = statusCode;
- setStatus(statusCode);
- if (errorRepresentorLookup.isError(statusCode))
- {
- ErrorRepresentor rep = errorRepresentorLookup.getRepresentor(statusCode);
- rep.write(statusCode, contentType, getRequest(), this);
- }
- }
- t.stop();
- }
Add Comment
Please, Sign In to add comment