org.wildfly.httpclient.naming.NamingConstants Maven / Gradle / Ivy
/*
* JBoss, Home of Professional Open Source.
* Copyright 2022 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wildfly.httpclient.naming;
import org.wildfly.httpclient.common.ContentType;
/**
* @author Richard Opalka
*/
final class NamingConstants {
// request headers
static final ContentType VALUE = new ContentType("application/x-wf-jndi-jbmar-value", 1);
static final ContentType EXCEPTION = new ContentType("application/x-wf-jbmar-exception", 1);
// context path
static final String NAMING_CONTEXT = "/naming";
// paths
static final String BIND_PATH = "/bind";
static final String CREATE_SUBCONTEXT_PATH = "/create-subcontext";
static final String DESTROY_SUBCONTEXT_PATH = "/dest-subctx";
static final String LIST_PATH = "/list";
static final String LIST_BINDINGS_PATH = "/list-bindings";
static final String LOOKUP_PATH = "/lookup";
static final String LOOKUP_LINK_PATH = "/lookuplink";
static final String REBIND_PATH = "/rebind";
static final String RENAME_PATH = "/rename";
static final String UNBIND_PATH = "/unbind";
// params
static final String NAME_PATH_PARAMETER = "name";
static final String NEW_QUERY_PARAMETER = "new";
// protocols
static final String HTTP_SCHEME = "http";
static final String HTTPS_SCHEME = "https";
static final String JAVA_SCHEME = "java";
// ports
static final int HTTP_PORT = 80;
static final int HTTPS_PORT = 443;
private NamingConstants() {
// forbidden instantiation
}
}