예제 #1
0
 @Override
 public void setEntityStream(InputStream input) {
   Preconditions.checkState(
       !inResponseProcessingPhase, ERROR_REQUEST_SET_ENTITY_STREAM_IN_RESPONSE_PHASE);
   super.setEntityStream(input);
 }
예제 #2
0
 @Override
 public void abortWith(Response response) {
   Preconditions.checkState(!inResponseProcessingPhase, ERROR_REQUEST_ABORT_IN_RESPONSE_PHASE);
   this.abortResponse = response;
 }
예제 #3
0
 @Override
 public void setSecurityContext(SecurityContext context) {
   Preconditions.checkState(
       !inResponseProcessingPhase, ERROR_REQUEST_SET_SECURITY_CONTEXT_IN_RESPONSE_PHASE);
   this.securityContext = context;
 }