001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.http;
014
015import org.apache.juneau.http.response.*;
016
017/**
018 * Standard predefined HTTP responses.
019 *
020 * <h5 class='section'>See Also:</h5><ul>
021 *    <li class='link'><a class="doclink" href="../../../../index.html#juneau-rest-common">juneau-rest-common</a>
022 * </ul>
023 */
024public class HttpResponses {
025
026   /**
027    * A synonym for {@link Accepted#INSTANCE}.
028    */
029   public static final Accepted ACCEPTED = Accepted.INSTANCE;
030
031   /**
032    * A synonym for {@link AlreadyReported#INSTANCE}.
033    */
034   public static final AlreadyReported ALREADY_REPORTED = AlreadyReported.INSTANCE;
035
036   /**
037    * A synonym for {@link BadRequest#INSTANCE}.
038    */
039   public static final BadRequest BAD_REQUEST = BadRequest.INSTANCE;
040
041   /**
042    * A synonym for {@link Conflict#INSTANCE}.
043    */
044   public static final Conflict CONFLICT = Conflict.INSTANCE;
045
046   /**
047    * A synonym for {@link Continue#INSTANCE}.
048    */
049   public static final Continue CONTINUE = Continue.INSTANCE;
050
051   /**
052    * A synonym for {@link Created#INSTANCE}.
053    */
054   public static final Created CREATED = Created.INSTANCE;
055
056   /**
057    * A synonym for {@link EarlyHints#INSTANCE}.
058    */
059   public static final EarlyHints EARLY_HINTS = EarlyHints.INSTANCE;
060
061   /**
062    * A synonym for {@link ExpectationFailed#INSTANCE}.
063    */
064   public static final ExpectationFailed EXPECTATION_FAILED = ExpectationFailed.INSTANCE;
065
066   /**
067    * A synonym for {@link FailedDependency#INSTANCE}.
068    */
069   public static final FailedDependency FAILED_DEPENDENCY = FailedDependency.INSTANCE;
070
071   /**
072    * A synonym for {@link Forbidden#INSTANCE}.
073    */
074   public static final Forbidden FORBIDDEN = Forbidden.INSTANCE;
075
076   /**
077    * A synonym for {@link Found#INSTANCE}.
078    */
079   public static final Found FOUND = Found.INSTANCE;
080
081   /**
082    * A synonym for {@link Gone#INSTANCE}.
083    */
084   public static final Gone GONE = Gone.INSTANCE;
085
086   /**
087    * A synonym for {@link HttpVersionNotSupported#INSTANCE}.
088    */
089   public static final HttpVersionNotSupported HTTP_VERSION_NOT_SUPPORTED = HttpVersionNotSupported.INSTANCE;
090
091   /**
092    * A synonym for {@link IMUsed#INSTANCE}.
093    */
094   public static final IMUsed IM_USED = IMUsed.INSTANCE;
095
096   /**
097    * A synonym for {@link InsufficientStorage#INSTANCE}.
098    */
099   public static final InsufficientStorage INSUFFICIENT_STORAGE = InsufficientStorage.INSTANCE;
100
101   /**
102    * A synonym for {@link InternalServerError#INSTANCE}.
103    */
104   public static final InternalServerError INTERNAL_SERVER_ERROR = InternalServerError.INSTANCE;
105
106   /**
107    * A synonym for {@link LengthRequired#INSTANCE}.
108    */
109   public static final LengthRequired LENGTH_REQUIRED = LengthRequired.INSTANCE;
110
111   /**
112    * A synonym for {@link Locked#INSTANCE}.
113    */
114   public static final Locked LOCKED = Locked.INSTANCE;
115
116   /**
117    * A synonym for {@link LoopDetected#INSTANCE}.
118    */
119   public static final LoopDetected LOOP_DETECTED = LoopDetected.INSTANCE;
120
121   /**
122    * A synonym for {@link MethodNotAllowed#INSTANCE}.
123    */
124   public static final MethodNotAllowed METHOD_NOT_ALLOWED = MethodNotAllowed.INSTANCE;
125
126   /**
127    * A synonym for {@link MisdirectedRequest#INSTANCE}.
128    */
129   public static final MisdirectedRequest MISDIRECTED_REQUEST = MisdirectedRequest.INSTANCE;
130
131   /**
132    * A synonym for {@link MovedPermanently#INSTANCE}.
133    */
134   public static final MovedPermanently MOVED_PERMANENTLY = MovedPermanently.INSTANCE;
135
136   /**
137    * A synonym for {@link MultiStatus#INSTANCE}.
138    */
139   public static final MultiStatus MULTI_STATUS = MultiStatus.INSTANCE;
140
141   /**
142    * A synonym for {@link MultipleChoices#INSTANCE}.
143    */
144   public static final MultipleChoices MULTIPLE_CHOICES = MultipleChoices.INSTANCE;
145
146   /**
147    * A synonym for {@link NetworkAuthenticationRequired#INSTANCE}.
148    */
149   public static final NetworkAuthenticationRequired NETWORK_AUTHENTICATION_REQUIRED = NetworkAuthenticationRequired.INSTANCE;
150
151   /**
152    * A synonym for {@link NoContent#INSTANCE}.
153    */
154   public static final NoContent NO_CONTENT = NoContent.INSTANCE;
155
156   /**
157    * A synonym for {@link NonAuthoritiveInformation#INSTANCE}.
158    */
159   public static final NonAuthoritiveInformation NON_AUTHORATIVE_INFORMATION = NonAuthoritiveInformation.INSTANCE;
160
161   /**
162    * A synonym for {@link NotAcceptable#INSTANCE}.
163    */
164   public static final NotAcceptable NOT_ACCEPTABLE = NotAcceptable.INSTANCE;
165
166   /**
167    * A synonym for {@link NotExtended#INSTANCE}.
168    */
169   public static final NotExtended NOT_EXTENDED = NotExtended.INSTANCE;
170
171   /**
172    * A synonym for {@link NotFound#INSTANCE}.
173    */
174   public static final NotFound NOT_FOUND = NotFound.INSTANCE;
175
176   /**
177    * A synonym for {@link NotImplemented#INSTANCE}.
178    */
179   public static final NotImplemented NOT_IMPLEMENTED = NotImplemented.INSTANCE;
180
181   /**
182    * A synonym for {@link NotModified#INSTANCE}.
183    */
184   public static final NotModified NOT_MODIFIED = NotModified.INSTANCE;
185
186   /**
187    * A synonym for {@link Ok#INSTANCE}.
188    */
189   public static final Ok OK = Ok.INSTANCE;
190
191   /**
192    * A synonym for {@link PartialContent#INSTANCE}.
193    */
194   public static final PartialContent PARTIAL_CONTENT = PartialContent.INSTANCE;
195
196   /**
197    * A synonym for {@link PayloadTooLarge#INSTANCE}.
198    */
199   public static final PayloadTooLarge PAYLOAD_TOO_LARGE = PayloadTooLarge.INSTANCE;
200
201   /**
202    * A synonym for {@link PermanentRedirect#INSTANCE}.
203    */
204   public static final PermanentRedirect PERMANENT_REDIRECT = PermanentRedirect.INSTANCE;
205
206   /**
207    * A synonym for {@link PreconditionFailed#INSTANCE}.
208    */
209   public static final PreconditionFailed PRECONDITION_FAILED = PreconditionFailed.INSTANCE;
210
211   /**
212    * A synonym for {@link PreconditionRequired#INSTANCE}.
213    */
214   public static final PreconditionRequired PRECONDITION_REQUIRED = PreconditionRequired.INSTANCE;
215
216   /**
217    * A synonym for {@link Processing#INSTANCE}.
218    */
219   public static final Processing PROCESSING = Processing.INSTANCE;
220
221   /**
222    * A synonym for {@link RangeNotSatisfiable#INSTANCE}.
223    */
224   public static final RangeNotSatisfiable RANGE_NOT_SATISFIABLE = RangeNotSatisfiable.INSTANCE;
225
226   /**
227    * A synonym for {@link RequestHeaderFieldsTooLarge#INSTANCE}.
228    */
229   public static final RequestHeaderFieldsTooLarge REQUEST_HEADER_FIELDS_TOO_LARGE = RequestHeaderFieldsTooLarge.INSTANCE;
230
231   /**
232    * A synonym for {@link ResetContent#INSTANCE}.
233    */
234   public static final ResetContent RESET_CONTENT = ResetContent.INSTANCE;
235
236   /**
237    * A synonym for {@link SeeOther#INSTANCE}.
238    */
239   public static final SeeOther SEE_OTHER = SeeOther.INSTANCE;
240
241   /**
242    * A synonym for {@link ServiceUnavailable#INSTANCE}.
243    */
244   public static final ServiceUnavailable SERVICE_UNAVAILABLE = ServiceUnavailable.INSTANCE;
245
246   /**
247    * A synonym for {@link SwitchingProtocols#INSTANCE}.
248    */
249   public static final SwitchingProtocols SWITCHING_PROTOCOLS = SwitchingProtocols.INSTANCE;
250
251   /**
252    * A synonym for {@link TemporaryRedirect#INSTANCE}.
253    */
254   public static final TemporaryRedirect TEMPORARY_REDIRECT = TemporaryRedirect.INSTANCE;
255
256   /**
257    * A synonym for {@link TooManyRequests#INSTANCE}.
258    */
259   public static final TooManyRequests TOO_MANY_REQUESTS = TooManyRequests.INSTANCE;
260
261   /**
262    * A synonym for {@link Unauthorized#INSTANCE}.
263    */
264   public static final Unauthorized UNAUTHORIZED = Unauthorized.INSTANCE;
265
266   /**
267    * A synonym for {@link UnavailableForLegalReasons#INSTANCE}.
268    */
269   public static final UnavailableForLegalReasons UNAVAILABLE_FOR_LEGAL_REASONS = UnavailableForLegalReasons.INSTANCE;
270
271   /**
272    * A synonym for {@link UnprocessableEntity#INSTANCE}.
273    */
274   public static final UnprocessableEntity UNPROCESSABLE_ENTITIY = UnprocessableEntity.INSTANCE;
275
276   /**
277    * A synonym for {@link UnsupportedMediaType#INSTANCE}.
278    */
279   public static final UnsupportedMediaType UNSUPPORTED_MEDIA_TYPE = UnsupportedMediaType.INSTANCE;
280
281   /**
282    * A synonym for {@link UpgradeRequired#INSTANCE}.
283    */
284   public static final UpgradeRequired UPGRADE_REQUIRED = UpgradeRequired.INSTANCE;
285
286   /**
287    * A synonym for {@link UriTooLong#INSTANCE}.
288    */
289   public static final UriTooLong URI_TOO_LONG = UriTooLong.INSTANCE;
290
291   /**
292    * A synonym for {@link UseProxy#INSTANCE}.
293    */
294   public static final UseProxy USE_PROXY = UseProxy.INSTANCE;
295
296   /**
297    * A synonym for {@link VariantAlsoNegotiates#INSTANCE}.
298    */
299   public static final VariantAlsoNegotiates VARIANT_ALSO_NEGOTIATES = VariantAlsoNegotiates.INSTANCE;
300
301
302   /**
303    * A shortcut for calling {@link Continue#Continue()}.
304    *
305    * @return A new bean.
306    */
307   public static final Continue _continue() {
308      return new Continue();
309   }
310
311   /**
312    * A shortcut for calling {@link Accepted#Accepted()}.
313    *
314    * @return A new bean.
315    */
316   public static final Accepted accepted() {
317      return new Accepted();
318   }
319
320   /**
321    * A shortcut for calling {@link AlreadyReported#AlreadyReported()}.
322    *
323    * @return A new bean.
324    */
325   public static final AlreadyReported alreadyReported() {
326      return new AlreadyReported();
327   }
328
329   /**
330    * A shortcut for calling {@link BadRequest#BadRequest()}.
331    *
332    * @return A new bean builder.
333    */
334   public static final BadRequest badRequest() {
335      return new BadRequest();
336   }
337
338   /**
339    * A shortcut for calling {@link Conflict#Conflict()}.
340    *
341    * @return A new bean builder.
342    */
343   public static final Conflict conflict() {
344      return new Conflict();
345   }
346
347   /**
348    * A shortcut for calling {@link Created#Created()}.
349    *
350    * @return A new bean.
351    */
352   public static final Created created() {
353      return new Created();
354   }
355
356   /**
357    * A shortcut for calling {@link EarlyHints#EarlyHints()}.
358    *
359    * @return A new bean.
360    */
361   public static final EarlyHints earlyHints() {
362      return new EarlyHints();
363   }
364
365   /**
366    * A shortcut for calling {@link ExpectationFailed#ExpectationFailed()}.
367    *
368    * @return A new bean builder.
369    */
370   public static final ExpectationFailed expectationFailed() {
371      return new ExpectationFailed();
372   }
373
374   /**
375    * A shortcut for calling {@link FailedDependency#FailedDependency()}.
376    *
377    * @return A new bean builder.
378    */
379   public static final FailedDependency failedDependency() {
380      return new FailedDependency();
381   }
382
383   /**
384    * A shortcut for calling {@link Forbidden#Forbidden()}.
385    *
386    * @return A new bean builder.
387    */
388   public static final Forbidden forbidden() {
389      return new Forbidden();
390   }
391
392   /**
393    * A shortcut for calling {@link Found#Found()}.
394    *
395    * @param location The value for the Location header.
396    * @return A new bean.
397    */
398   public static final Found found(String location) {
399      return new Found().setLocation(location);
400   }
401
402   /**
403    * A shortcut for calling {@link Gone#Gone()}.
404    *
405    * @return A new bean builder.
406    */
407   public static final Gone gone() {
408      return new Gone();
409   }
410
411   /**
412    * A shortcut for calling {@link BasicHttpException#BasicHttpException()}.
413    *
414    * @return A new bean builder.
415    */
416   public static final BasicHttpException httpException() {
417      return new BasicHttpException();
418   }
419
420   /**
421    * A shortcut for calling {@link HttpVersionNotSupported#HttpVersionNotSupported()}.
422    *
423    * @return A new bean builder.
424    */
425   public static final HttpVersionNotSupported httpVersionNotSupported() {
426      return new HttpVersionNotSupported();
427   }
428
429   /**
430    * A shortcut for calling {@link IMUsed#IMUsed()}.
431    *
432    * @return A new bean.
433    */
434   public static final IMUsed imUsed() {
435      return new IMUsed();
436   }
437
438   /**
439    * A shortcut for calling {@link InsufficientStorage#InsufficientStorage()}.
440    *
441    * @return A new bean builder.
442    */
443   public static final InsufficientStorage insufficientStorage() {
444      return new InsufficientStorage();
445   }
446
447   /**
448    * A shortcut for calling {@link InternalServerError#InternalServerError()}.
449    *
450    * @return A new bean builder.
451    */
452   public static final InternalServerError internalServerError() {
453      return new InternalServerError();
454   }
455
456   /**
457    * A shortcut for calling {@link LengthRequired#LengthRequired()}.
458    *
459    * @return A new bean builder.
460    */
461   public static final LengthRequired lengthRequired() {
462      return new LengthRequired();
463   }
464
465   /**
466    * A shortcut for calling {@link Locked#Locked()}.
467    *
468    * @return A new bean builder.
469    */
470   public static final Locked locked() {
471      return new Locked();
472   }
473
474   /**
475    * A shortcut for calling {@link LoopDetected#LoopDetected()}.
476    *
477    * @return A new bean builder.
478    */
479   public static final LoopDetected loopDetected() {
480      return new LoopDetected();
481   }
482
483   /**
484    * A shortcut for calling {@link MethodNotAllowed#MethodNotAllowed()}.
485    *
486    * @return A new bean builder.
487    */
488   public static final MethodNotAllowed methodNotAllowed() {
489      return new MethodNotAllowed();
490   }
491
492   /**
493    * A shortcut for calling {@link MisdirectedRequest#MisdirectedRequest()}.
494    *
495    * @return A new bean builder.
496    */
497   public static final MisdirectedRequest misdirectedRequest() {
498      return new MisdirectedRequest();
499   }
500   /**
501    * A shortcut for calling {@link MovedPermanently#MovedPermanently()}.
502    *
503    * @param location The value for the Location header.
504    * @return A new bean.
505    */
506   public static final MovedPermanently movedPermanently(String location) {
507      return new MovedPermanently().setLocation(location);
508   }
509
510   /**
511    * A shortcut for calling {@link MovedPermanently#MovedPermanently()}.
512    *
513    * @return A new bean.
514    */
515   public static final MultipleChoices multipleChoices() {
516      return new MultipleChoices();
517   }
518
519   /**
520    * A shortcut for calling {@link MultiStatus#MultiStatus()}.
521    *
522    * @return A new bean.
523    */
524   public static final MultiStatus multiStatus() {
525      return new MultiStatus();
526   }
527
528   /**
529    * A shortcut for calling {@link NetworkAuthenticationRequired#NetworkAuthenticationRequired()}.
530    *
531    * @return A new bean builder.
532    */
533   public static final NetworkAuthenticationRequired networkAuthenticationRequired() {
534      return new NetworkAuthenticationRequired();
535   }
536
537   /**
538    * A shortcut for calling {@link NoContent#NoContent()}.
539    *
540    * @return A new bean.
541    */
542   public static final NoContent noContent() {
543      return new NoContent();
544   }
545
546   /**
547    * A shortcut for calling {@link NonAuthoritiveInformation#NonAuthoritiveInformation()}.
548    *
549    * @return A new bean.
550    */
551   public static final NonAuthoritiveInformation nonAuthoritiveInformation() {
552      return new NonAuthoritiveInformation();
553   }
554
555   /**
556    * A shortcut for calling {@link NotAcceptable#NotAcceptable()}.
557    *
558    * @return A new bean builder.
559    */
560   public static final NotAcceptable notAcceptable() {
561      return new NotAcceptable();
562   }
563
564   /**
565    * A shortcut for calling {@link NotExtended#NotExtended()}.
566    *
567    * @return A new bean builder.
568    */
569   public static final NotExtended notExtended() {
570      return new NotExtended();
571   }
572
573   /**
574    * A shortcut for calling {@link NotFound#NotFound()}.
575    *
576    * @return A new bean builder.
577    */
578   public static final NotFound notFound() {
579      return new NotFound();
580   }
581
582   /**
583    * A shortcut for calling {@link NotImplemented#NotImplemented()}.
584    *
585    * @return A new bean builder.
586    */
587   public static final NotImplemented notImplemented() {
588      return new NotImplemented();
589   }
590
591   /**
592    * A shortcut for calling {@link NotModified#NotModified()}.
593    *
594    * @return A new bean.
595    */
596   public static final NotModified notModified() {
597      return new NotModified();
598   }
599
600   /**
601    * A shortcut for calling {@link Ok#Ok()}.
602    *
603    * @return A new bean.
604    */
605   public static final Ok ok() {
606      return new Ok();
607   }
608
609   /**
610    * A shortcut for calling {@link PartialContent#PartialContent()}.
611    *
612    * @return A new bean.
613    */
614   public static final PartialContent partialContent() {
615      return new PartialContent();
616   }
617
618   /**
619    * A shortcut for calling {@link PayloadTooLarge#PayloadTooLarge()}.
620    *
621    * @return A new bean builder.
622    */
623   public static final PayloadTooLarge payloadTooLarge() {
624      return new PayloadTooLarge();
625   }
626
627   /**
628    * A shortcut for calling {@link PermanentRedirect#PermanentRedirect()}.
629    *
630    * @param location The value for the Location header.
631    * @return A new bean.
632    */
633   public static final PermanentRedirect permanentRedirect(String location) {
634      return new PermanentRedirect().setLocation(location);
635   }
636
637   /**
638    * A shortcut for calling {@link PreconditionFailed#PreconditionFailed()}.
639    *
640    * @return A new bean builder.
641    */
642   public static final PreconditionFailed preconditionFailed() {
643      return new PreconditionFailed();
644   }
645
646   /**
647    * A shortcut for calling {@link PreconditionRequired#PreconditionRequired()}.
648    *
649    * @return A new bean builder.
650    */
651   public static final PreconditionRequired preconditionRequired() {
652      return new PreconditionRequired();
653   }
654
655   /**
656    * A shortcut for calling {@link Processing#Processing()}.
657    *
658    * @return A new bean.
659    */
660   public static final Processing processing() {
661      return new Processing();
662   }
663
664   /**
665    * A shortcut for calling {@link RangeNotSatisfiable#RangeNotSatisfiable()}.
666    *
667    * @return A new bean builder.
668    */
669   public static final RangeNotSatisfiable rangeNotSatisfiable() {
670      return new RangeNotSatisfiable();
671   }
672
673   /**
674    * A shortcut for calling {@link RequestHeaderFieldsTooLarge#RequestHeaderFieldsTooLarge()}.
675    *
676    * @return A new bean builder.
677    */
678   public static final RequestHeaderFieldsTooLarge requestHeaderFieldsTooLarge() {
679      return new RequestHeaderFieldsTooLarge();
680   }
681
682   /**
683    * A shortcut for calling {@link ResetContent#ResetContent()}.
684    *
685    * @return A new bean.
686    */
687   public static final ResetContent resetContent() {
688      return new ResetContent();
689   }
690
691   /**
692    * A shortcut for calling {@link SeeOther#SeeOther()}.
693    *
694    * @param location The value for the Location header.
695    * @return A new bean.
696    */
697   public static final SeeOther seeOther(String location) {
698      return new SeeOther().setLocation(location);
699   }
700
701   /**
702    * A shortcut for calling {@link ServiceUnavailable#ServiceUnavailable()}.
703    *
704    * @return A new bean builder.
705    */
706   public static final ServiceUnavailable serviceUnavailable() {
707      return new ServiceUnavailable();
708   }
709
710   /**
711    * A shortcut for calling {@link SwitchingProtocols#SwitchingProtocols()}.
712    *
713    * @return A new bean.
714    */
715   public static final SwitchingProtocols switchingProtocols() {
716      return new SwitchingProtocols();
717   }
718
719   /**
720    * A shortcut for calling {@link TemporaryRedirect#TemporaryRedirect()}.
721    *
722    * @param location The value for the Location header.
723    * @return A new bean.
724    */
725   public static final TemporaryRedirect temporaryRedirect(String location) {
726      return new TemporaryRedirect().setLocation(location);
727   }
728
729   /**
730    * A shortcut for calling {@link TooManyRequests#TooManyRequests()}.
731    *
732    * @return A new bean builder.
733    */
734   public static final TooManyRequests tooManyRequests() {
735      return new TooManyRequests();
736   }
737
738   /**
739    * A shortcut for calling {@link Unauthorized#Unauthorized()}.
740    *
741    * @return A new bean builder.
742    */
743   public static final Unauthorized unauthorized() {
744      return new Unauthorized();
745   }
746
747   /**
748    * A shortcut for calling {@link UnavailableForLegalReasons#UnavailableForLegalReasons()}.
749    *
750    * @return A new bean builder.
751    */
752   public static final UnavailableForLegalReasons unavailableForLegalReasons() {
753      return new UnavailableForLegalReasons();
754   }
755
756   /**
757    * A shortcut for calling {@link UnprocessableEntity#UnprocessableEntity()}.
758    *
759    * @return A new bean builder.
760    */
761   public static final UnprocessableEntity unprocessableEntity() {
762      return new UnprocessableEntity();
763   }
764
765   /**
766    * A shortcut for calling {@link UnsupportedMediaType#UnsupportedMediaType()}.
767    *
768    * @return A new bean builder.
769    */
770   public static final UnsupportedMediaType unsupportedMediaType() {
771      return new UnsupportedMediaType();
772   }
773
774   /**
775    * A shortcut for calling {@link UpgradeRequired#UpgradeRequired()}.
776    *
777    * @return A new bean builder.
778    */
779   public static final UpgradeRequired upgradeRequired() {
780      return new UpgradeRequired();
781   }
782
783   /**
784    * A shortcut for calling {@link UriTooLong#UriTooLong()}.
785    *
786    * @return A new bean builder.
787    */
788   public static final UriTooLong uriTooLong() {
789      return new UriTooLong();
790   }
791
792   /**
793    * A shortcut for calling {@link UseProxy#UseProxy()}.
794    *
795    * @return A new bean.
796    */
797   public static final UseProxy useProxy() {
798      return new UseProxy();
799   }
800
801   /**
802    * A shortcut for calling {@link VariantAlsoNegotiates#VariantAlsoNegotiates()}.
803    *
804    * @return A new bean builder.
805    */
806   public static final VariantAlsoNegotiates variantAlsoNegotiates() {
807      return new VariantAlsoNegotiates();
808   }
809}