@Override public String getAuthType() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
private FacesContext _createFacesContext(ServletContext servletContext, boolean startup) { ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); FacesContext facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, startup); // If getViewRoot() is called during application startup or shutdown, // it should return a new UIViewRoot with its locale set to Locale.getDefault(). UIViewRoot startupViewRoot = new UIViewRoot(); startupViewRoot.setLocale(Locale.getDefault()); facesContext.setViewRoot(startupViewRoot); return facesContext; }
@Override public Iterator<Locale> getRequestLocales() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public Object getSession(boolean create) { if (create) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); } return null; }
@Override public String getSessionId(boolean create) { if (create) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); } return null; }
@Override public String getRequestContentType() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public int getResponseBufferSize() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
/** * Cannot redirect because this is not a page request */ @Override public void redirect(String url) throws IOException { throw new IllegalStateException(EXCEPTION_TEXT + _getTime()); }
@Override public Writer getResponseOutputWriter() throws IOException { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public boolean isSecure() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String encodeWebsocketURL(String url) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String encodeActionURL(String url) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public Map<String, String> getRequestHeaderMap() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String getRequestContentType() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String getResponseCharacterEncoding() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public void invalidateSession() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public void setResponseHeader(String name, String value) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String encodeResourceURL(String url) { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public Object getRequest() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }
@Override public String getRequestContextPath() { throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime()); }