All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jxmpp.stringprep.XmppStringprep Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
/**
 *
 * Copyright © 2014 Florian Schmaus
 *
 * 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.jxmpp.stringprep;

/**
 * Interface for commonly used Stringprep operations used in XMPP.
 * 

* The relevant RFCs are: *

* */ public interface XmppStringprep { /** * Performs String preparation on the localpart String of a JID. In RFC 6122 terms this means applying the * nodeprep profile of Stringprep. * * @param string the String to transform. * @return the prepared String. * @throws XmppStringprepException if there is an error. */ public String localprep(String string) throws XmppStringprepException; /** * Performs String preparation on the domainpart String of a JID. In RFC 61ss terms, this means applying the * nameprep profile of Stringprep. * * @param string the String to transform. * @return the prepared String. * @throws XmppStringprepException if there is an error. */ public String domainprep(String string) throws XmppStringprepException; /** * Performs String preparation on the resourcepart String of a JID. In RFC 6122 terms this means applying the resourceprep profile of Stringprep. * @param string the String to transform. * @return the prepared String. * @throws XmppStringprepException if there is an error. */ public String resourceprep(String string) throws XmppStringprepException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy