Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 2 24 25 26 27 28 29 package com.lutris.appserver.server.httpPresentation; 30 31 32 38 public class PageUnauthorizedException extends RuntimeException { 39 45 private String relm; 46 47 50 private static final String defaultHtmlTitle = 51 "Unauthorized access"; 52 53 56 private static final String defaultHtmlText = 57 "<B>Client is not authorized to access this page</B>"; 58 59 62 private String htmlTitle = defaultHtmlTitle; 63 64 67 private String htmlText = defaultHtmlText; 68 69 79 public PageUnauthorizedException(String requestedRelm) { 80 super(defaultHtmlTitle); 81 relm = requestedRelm; 82 } 83 84 85 97 public PageUnauthorizedException(String requestedRelm, 98 String htmlDisplayText) { 99 super(defaultHtmlTitle); 100 relm = requestedRelm; 101 if (htmlDisplayText != null) { 102 htmlText = htmlDisplayText; 103 } 104 } 105 106 107 108 114 public String getRelm() { 115 return relm; 116 } 117 118 123 public String getHtmlTitle() { 124 return htmlTitle; 125 } 126 127 132 public String getHtmlText() { 133 return htmlText; 134 } 135 136 } 137
| Popular Tags
|