Java Code Examples for org.jivesoftware.util.JiveGlobals#deleteXMLProperty()

The following examples show how to use org.jivesoftware.util.JiveGlobals#deleteXMLProperty() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XMPPServerInfoImpl.java    From Openfire with Apache License 2.0 5 votes vote down vote up
@Override
public void setHostname( String fqdn )
{
    if ( fqdn == null || fqdn.isEmpty() )
    {
        JiveGlobals.deleteXMLProperty( "fqdn" );
    }
    else
    {
        JiveGlobals.setXMLProperty( "fqdn", fqdn.toLowerCase() );
    }
}
 
Example 2
Source File: AuthFactory.java    From Openfire with Apache License 2.0 5 votes vote down vote up
public static AuthToken checkOneTimeAccessToken(String userToken) throws UnauthorizedException {
    String accessToken = JiveGlobals.getXMLProperty(ONE_TIME_PROPERTY);
    if (isOneTimeAccessTokenEnabled() && accessToken.equals(userToken)) {
        // Remove the one time token.
        // This invocation will overwrite the openfire.xml with removing the OneTimeAccessToken tag.
        JiveGlobals.deleteXMLProperty(ONE_TIME_PROPERTY);
        Log.info("Login with the one time access token.");
        return AuthToken.generateOneTimeToken(accessToken);
    } else {
        throw new UnauthorizedException();
    }
}
 
Example 3
Source File: OFMeetConfig.java    From openfire-ofmeet-plugin with Apache License 2.0 4 votes vote down vote up
public void resetSimulcast()
{
    JiveGlobals.deleteXMLProperty( "org.jitsi.videobridge.ofmeet.simulcast" );
}
 
Example 4
Source File: OFMeetConfig.java    From openfire-ofmeet-plugin with Apache License 2.0 4 votes vote down vote up
public void resetDisableRtx()
{
    JiveGlobals.deleteXMLProperty( "org.jitsi.videobridge.ofmeet.disableRtx" );
}
 
Example 5
Source File: OFMeetConfig.java    From openfire-ofmeet-plugin with Apache License 2.0 4 votes vote down vote up
public void resetAdaptiveSimulcast()
{
    JiveGlobals.deleteXMLProperty("org.jitsi.videobridge.ofmeet.adaptive.simulcast" );
}