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