code stringlengths 3 1.18M | language stringclasses 1 value |
|---|---|
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app;
import org.jdiameter.api.ApplicationId;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public abstract class AppSessionDataLocalImpl implements IAppSessionData {
private String sessionId;
private ApplicationId applicationId;
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public ApplicationId getApplicationId() {
return applicationId;
}
public void setApplicationId(ApplicationId applicationId) {
this.applicationId = applicationId;
}
public boolean remove() {
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((applicationId == null) ? 0 : applicationId.hashCode());
result = prime * result + ((sessionId == null) ? 0 : sessionId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
AppSessionDataLocalImpl other = (AppSessionDataLocalImpl) obj;
if (applicationId == null) {
if (other.applicationId != null)
return false;
} else if (!applicationId.equals(other.applicationId))
return false;
if (sessionId == null) {
if (other.sessionId != null)
return false;
}
else if (!sessionId.equals(other.sessionId))
return false;
return true;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.api.Message;
import org.jdiameter.api.cca.ClientCCASession;
/**
* Diameter Credit Control Application Client Additional listener
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IClientCCASessionContext {
long getDefaultTxTimerValue();
void txTimerExpired(ClientCCASession session);
int getDefaultCCFHValue();
int getDefaultDDFHValue();
void grantAccessOnDeliverFailure(ClientCCASession clientCCASessionImpl,Message request);
void denyAccessOnDeliverFailure(ClientCCASession clientCCASessionImpl,Message request);
void grantAccessOnTxExpire(ClientCCASession clientCCASessionImpl);
void denyAccessOnTxExpire(ClientCCASession clientCCASessionImpl);
void grantAccessOnFailureMessage(ClientCCASession clientCCASessionImpl);
void denyAccessOnFailureMessage(ClientCCASession clientCCASessionImpl);
void indicateServiceError(ClientCCASession clientCCASessionImpl);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.common.api.app.IAppSessionState;
/**
* Diameter Credit-Control Application Server states
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ServerCCASessionState implements IAppSessionState<ServerCCASessionState> {
IDLE(0),
OPEN(1);
private int stateRepresentation = -1;
ServerCCASessionState(int v) {
this.stateRepresentation=v;
}
public ServerCCASessionState fromInt(int v) throws IllegalArgumentException {
switch(v)
{
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateRepresentation;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.auth.events.ReAuthAnswer;
import org.jdiameter.api.auth.events.ReAuthRequest;
import org.jdiameter.api.cca.events.JCreditControlAnswer;
import org.jdiameter.api.cca.events.JCreditControlRequest;
/**
* Diameter Credit-Control Application Message Factory
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ICCAMessageFactory {
public ReAuthRequest createReAuthRequest(Request request);
public ReAuthAnswer createReAuthAnswer(Answer answer);
public JCreditControlRequest createCreditControlRequest(Request request);
public JCreditControlAnswer createCreditControlAnswer(Answer answer);
public long[] getApplicationIds();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import java.util.concurrent.ScheduledFuture;
import org.jdiameter.api.Request;
import org.jdiameter.api.cca.ServerCCASession;
/**
* Diameter Credit Control Application Server Additional listener
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerCCASessionContext {
public void sessionSupervisionTimerExpired(ServerCCASession session);
/**
* This is called always when Tcc starts
* @param session
* @param future
*/
public void sessionSupervisionTimerStarted(ServerCCASession session, ScheduledFuture future);
public void sessionSupervisionTimerReStarted(ServerCCASession session, ScheduledFuture future);
public void sessionSupervisionTimerStopped(ServerCCASession session, ScheduledFuture future);
/**
* Returns seconds value representing default validity time, App session uses 2x for Tcc timer
* @return
*/
public long getDefaultValidityTime();
public void timeoutExpired(Request request);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ICCASessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ClientCCASessionState implements IAppSessionState<ClientCCASessionState>{
IDLE(0),
PENDING_EVENT(1),
PENDING_INITIAL(2),
PENDING_UPDATE(3),
PENDING_TERMINATION(4),
PENDING_BUFFERED(5),
OPEN(6);
private int stateValue = -1;
ClientCCASessionState(int stateV)
{
this.stateValue=stateV;
}
public ClientCCASessionState fromInt(int v) throws IllegalArgumentException
{
switch(v)
{
case 0:
return IDLE;
case 1:
return PENDING_EVENT;
case 2:
return PENDING_INITIAL;
case 3:
return PENDING_UPDATE;
case 4:
return PENDING_TERMINATION;
case 5:
return PENDING_BUFFERED;
case 6:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue()
{
return stateValue;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cca;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.cca.ClientCCASessionListener;
import org.jdiameter.api.cca.ServerCCASessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter Credit-Control Application (CCA).
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ICCASessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the clientSessionListener
*/
public ClientCCASessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientCCASessionListener clientSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the serverSessionListener
*/
public ServerCCASessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerCCASessionListener serverSessionListener);
/**
* @return the serverContextListener
*/
public IServerCCASessionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerCCASessionContext serverContextListener);
/**
* @return the clientContextListener
*/
public IClientCCASessionContext getClientContextListener();
/**
* @return the messageFactory
*/
public ICCAMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(ICCAMessageFactory messageFactory);
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientCCASessionContext clientContextListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cxdx;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.cxdx.events.JLocationInfoAnswer;
import org.jdiameter.api.cxdx.events.JLocationInfoRequest;
import org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer;
import org.jdiameter.api.cxdx.events.JMultimediaAuthRequest;
import org.jdiameter.api.cxdx.events.JPushProfileAnswer;
import org.jdiameter.api.cxdx.events.JPushProfileRequest;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationAnswer;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest;
import org.jdiameter.api.cxdx.events.JServerAssignmentAnswer;
import org.jdiameter.api.cxdx.events.JServerAssignmentRequest;
import org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer;
import org.jdiameter.api.cxdx.events.JUserAuthorizationRequest;
/**
* Message Factory for Diameter Cx/Dx application.
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ICxDxMessageFactory {
/**
* Creates a Location-Info-Request event.
*
* @param request the request to create the LIR from
* @return an AppRequestEvent wrapping the LIR
*/
JLocationInfoRequest createLocationInfoRequest(Request request);
/**
* Creates a User-Authorization-Request event.
*
* @param request the request to create the UAR from
* @return an AppRequestEvent wrapping the UAR
*/
JUserAuthorizationRequest createUserAuthorizationRequest(Request request);
/**
* Creates a Server-Assignment-Request event.
*
* @param request the request to create the SAR from
* @return an AppRequestEvent wrapping the SAR
*/
JServerAssignmentRequest createServerAssignmentRequest(Request request);
/**
* Creates a Registration-Termination-Request event.
*
* @param request the request to create the RTR from
* @return an AppRequestEvent wrapping the RTR
*/
JRegistrationTerminationRequest createRegistrationTerminationRequest(Request request);
/**
* Creates a Multimedia-Auth-Request event.
*
* @param request the request to create the MAR from
* @return an AppRequestEvent wrapping the MAR
*/
JMultimediaAuthRequest createMultimediaAuthRequest(Request request);
/**
* Creates a Push-Profile-Request event.
*
* @param request the request to create the PPR from
* @return an AppRequestEvent wrapping the PPR
*/
JPushProfileRequest createPushProfileRequest(Request request);
/**
* Creates a Push-Profile-Answer event.
*
* @param answer the answer to create the PPA from
* @return an AppAnswerEvent wrapping the PPA
*/
JPushProfileAnswer createPushProfileAnswer(Answer answer);
/**
* Creates a Location-Info-Answer event.
*
* @param answer the answer to create the LIA from
* @return an AppAnswerEvent wrapping the LIA
*/
JLocationInfoAnswer createLocationInfoAnswer(Answer answer);
/**
* Creates a User-Authorization-Answer event.
*
* @param answer the answer to create the UAA from
* @return an AppAnswerEvent wrapping the UAA
*/
JUserAuthorizationAnswer createUserAuthorizationAnswer(Answer answer);
/**
* Creates a Server-Assignment-Answer event.
*
* @param answer the answer to create the SAA from
* @return an AppAnswerEvent wrapping the SAA
*/
JServerAssignmentAnswer createServerAssignmentAnswer(Answer answer);
/**
* Creates a Registration-Termination-Answer event.
*
* @param answer the answer to create the RTA from
* @return an AppAnswerEvent wrapping the RTA
*/
JRegistrationTerminationAnswer createRegistrationTerminationAnswer(Answer answer);
/**
* Creates a Multimedia-Auth-Answer event.
*
* @param answer the answer to create the MAA from
* @return an AppAnswerEvent wrapping the MAA
*/
JMultimediaAuthAnswer createMultimediaAuthAnswer(Answer answer);
/**
* Returns the Application-Id that this message factory is related to
*
* @return the Application-Id value
*/
long getApplicationId();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cxdx;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.cxdx.ClientCxDxSessionListener;
import org.jdiameter.api.cxdx.ServerCxDxSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter CxDx application.
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ICxDxSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @return the clientSessionListener
*/
public ClientCxDxSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientCxDxSessionListener clientSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @return the serverSessionListener
*/
public ServerCxDxSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerCxDxSessionListener serverSessionListener);
/**
* @return the messageFactory
*/
public ICxDxMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(ICxDxMessageFactory messageFactory);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cxdx;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum CxDxSessionState {
//FIXME: should we distinguish types of messages?
IDLE,MESSAGE_SENT_RECEIVED,TERMINATED, TIMEDOUT;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.cxdx;
import java.io.Serializable;
import org.jdiameter.api.Request;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ICxDxSessionData extends IAppSessionData {
public void setCxDxSessionState(CxDxSessionState state);
public CxDxSessionState getCxDxSessionState();
public Serializable getTsTimerId();
public void setTsTimerId(Serializable tid);
public void setBuffer(Request buffer);
public Request getBuffer();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.s6a;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
* @author <a href="mailto:paul.carter-brown@smilecoms.com"> Paul Carter-Brown </a>
*/
public enum S6aSessionState {
IDLE, MESSAGE_SENT_RECEIVED, TERMINATED, TIMEDOUT;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.s6a;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.s6a.events.JAuthenticationInformationAnswer;
import org.jdiameter.api.s6a.events.JAuthenticationInformationRequest;
import org.jdiameter.api.s6a.events.JCancelLocationAnswer;
import org.jdiameter.api.s6a.events.JCancelLocationRequest;
import org.jdiameter.api.s6a.events.JDeleteSubscriberDataAnswer;
import org.jdiameter.api.s6a.events.JDeleteSubscriberDataRequest;
import org.jdiameter.api.s6a.events.JInsertSubscriberDataAnswer;
import org.jdiameter.api.s6a.events.JInsertSubscriberDataRequest;
import org.jdiameter.api.s6a.events.JNotifyAnswer;
import org.jdiameter.api.s6a.events.JNotifyRequest;
import org.jdiameter.api.s6a.events.JPurgeUEAnswer;
import org.jdiameter.api.s6a.events.JPurgeUERequest;
import org.jdiameter.api.s6a.events.JResetAnswer;
import org.jdiameter.api.s6a.events.JResetRequest;
import org.jdiameter.api.s6a.events.JUpdateLocationAnswer;
import org.jdiameter.api.s6a.events.JUpdateLocationRequest;
/**
* Message Factory for Diameter S6a application.
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
* @author <a href="mailto:paul.carter-brown@smilecoms.com"> Paul Carter-Brown </a>
*/
public interface IS6aMessageFactory {
JUpdateLocationRequest createUpdateLocationRequest(Request request);
JUpdateLocationAnswer createUpdateLocationAnswer(Answer answer);
JCancelLocationRequest createCancelLocationRequest(Request request);
JCancelLocationAnswer createCancelLocationAnswer(Answer answer);
JAuthenticationInformationRequest createAuthenticationInformationRequest(Request request);
JAuthenticationInformationAnswer createAuthenticationInformationAnswer(Answer answer);
JInsertSubscriberDataRequest createInsertSubscriberDataRequest(Request request);
JInsertSubscriberDataAnswer createInsertSubscriberDataAnswer(Answer answer);
JDeleteSubscriberDataRequest createDeleteSubscriberDataRequest(Request request);
JDeleteSubscriberDataAnswer createDeleteSubscriberDataAnswer(Answer answer);
JPurgeUERequest createPurgeUERequest(Request request);
JPurgeUEAnswer createPurgeUEAnswer(Answer answer);
JResetRequest createResetRequest(Request request);
JResetAnswer createResetAnswer(Answer answer);
JNotifyRequest createNotifyRequest(Request request);
JNotifyAnswer createNotifyAnswer(Answer answer);
/**
* Returns the Application-Id that this message factory is related to
*
* @return the Application-Id value
*/
long getApplicationId();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.s6a;
import java.io.Serializable;
import org.jdiameter.api.Request;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
* @author <a href="mailto:paul.carter-brown@smilecoms.com"> Paul Carter-Brown </a>
*/
public interface IS6aSessionData extends IAppSessionData {
public void setS6aSessionState(S6aSessionState state);
public S6aSessionState getS6aSessionState();
public Serializable getTsTimerId();
public void setTsTimerId(Serializable tid);
public void setBuffer(Request buffer);
public Request getBuffer();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.s6a;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.s6a.ClientS6aSessionListener;
import org.jdiameter.api.s6a.ServerS6aSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter S6a application.
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
* @author <a href="mailto:paul.carter-brown@smilecoms.com"> Paul Carter-Brown </a>
*/
public interface IS6aSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @return the serverSessionListener
*/
public ServerS6aSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerS6aSessionListener serverSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @return the clientSessionListener
*/
public ClientS6aSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar effect
* as setting this directly in app session. However clustered session use
* this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientS6aSessionListener clientSessionListener);
/**
* @return the messageFactory
*/
public IS6aMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(IS6aMessageFactory messageFactory);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import java.util.concurrent.ScheduledFuture;
import org.jdiameter.api.Request;
import org.jdiameter.api.gx.ServerGxSession;
/**
* Diameter Gx Application Server Additional listener
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerGxSessionContext {
public void sessionSupervisionTimerExpired(ServerGxSession session);
/**
* This is called always when Tcc starts
* @param session
* @param future
*/
public void sessionSupervisionTimerStarted(ServerGxSession session, ScheduledFuture future);
public void sessionSupervisionTimerReStarted(ServerGxSession session, ScheduledFuture future);
public void sessionSupervisionTimerStopped(ServerGxSession session, ScheduledFuture future);
/**
* Returns seconds value representing default validity time, App session uses 2x for Tcc timer
* @return
*/
public long getDefaultValidityTime();
public void timeoutExpired(Request request);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author Erick Svenson
*/
public enum ClientGxSessionState implements IAppSessionState<ClientGxSessionState> {
IDLE(0),
PENDING_EVENT(1),
PENDING_INITIAL(2),
PENDING_UPDATE(3),
PENDING_TERMINATION(4),
PENDING_BUFFERED(5),
OPEN(6);
private int stateValue = -1;
ClientGxSessionState(int stateV) {
this.stateValue = stateV;
}
public ClientGxSessionState fromInt(int v) throws IllegalArgumentException {
switch (v) {
case 0:
return IDLE;
case 1:
return PENDING_EVENT;
case 2:
return PENDING_INITIAL;
case 3:
return PENDING_UPDATE;
case 4:
return PENDING_TERMINATION;
case 5:
return PENDING_BUFFERED;
case 6:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateValue;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.gx.events.GxReAuthAnswer;
import org.jdiameter.api.gx.events.GxReAuthRequest;
import org.jdiameter.api.gx.events.GxCreditControlAnswer;
import org.jdiameter.api.gx.events.GxCreditControlRequest;
/**
* Diameter Gx Application Message Factory
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:carl-magnus.bjorkell@emblacom.com"> Carl-Magnus Björkell </a>
*/
public interface IGxMessageFactory {
public GxReAuthRequest createGxReAuthRequest(Request request);
public GxReAuthAnswer createGxReAuthAnswer(Answer answer);
public GxCreditControlRequest createCreditControlRequest(Request request);
public GxCreditControlAnswer createCreditControlAnswer(Answer answer);
public long[] getApplicationIds();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.gx.ClientGxSessionListener;
import org.jdiameter.api.gx.ServerGxSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter Gx Application (Gx).
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:carl-magnus.bjorkell@emblacom.com"> Carl-Magnus Björkell </a>
*/
public interface IGxSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the clientSessionListener
*/
public ClientGxSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientGxSessionListener clientSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the serverSessionListener
*/
public ServerGxSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerGxSessionListener serverSessionListener);
/**
* @return the serverContextListener
*/
public IServerGxSessionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerGxSessionContext serverContextListener);
/**
* @return the clientContextListener
*/
public IClientGxSessionContext getClientContextListener();
/**
* @return the messageFactory
*/
public IGxMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(IGxMessageFactory messageFactory);
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientGxSessionContext clientContextListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.common.api.app.IAppSessionState;
/**
* Diameter Gx Server states
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ServerGxSessionState implements IAppSessionState<ServerGxSessionState> {
IDLE(0),
OPEN(1);
private int stateRepresentation = -1;
ServerGxSessionState(int v) {
this.stateRepresentation=v;
}
public ServerGxSessionState fromInt(int v) throws IllegalArgumentException {
switch(v)
{
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateRepresentation;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.api.Message;
import org.jdiameter.api.gx.ClientGxSession;
/**
* Diameter Gx Application Client Additional listener.
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:carl-magnus.bjorkell@emblacom.com"> Carl-Magnus Björkell </a>
*/
public interface IClientGxSessionContext {
long getDefaultTxTimerValue();
void txTimerExpired(ClientGxSession session);
int getDefaultCCFHValue();
int getDefaultDDFHValue();
void grantAccessOnDeliverFailure(ClientGxSession clientGxSessionImpl, Message request);
void denyAccessOnDeliverFailure(ClientGxSession clientGxSessionImpl, Message request);
void grantAccessOnTxExpire(ClientGxSession clientGxSessionImpl);
void denyAccessOnTxExpire(ClientGxSession clientGxSessionImpl);
void grantAccessOnFailureMessage(ClientGxSession clientGxSessionImpl);
void denyAccessOnFailureMessage(ClientGxSession clientGxSessionImpl);
void indicateServiceError(ClientGxSession clientGxSessionImpl);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.gx;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IGxSessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAppSessionState<T> {
int getValue();
T fromInt(int val) throws IllegalArgumentException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import java.util.concurrent.ScheduledFuture;
import org.jdiameter.api.rx.ServerRxSession;
/**
* Diameter 3GPP IMS Rx Reference Point Server Additional listener
* Actions for FSM
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public interface IServerRxSessionContext {
public void sessionSupervisionTimerExpired(ServerRxSession session);
/**
* This is called always when Tcc starts
* @param session
* @param future
*/
public void sessionSupervisionTimerStarted(ServerRxSession session, ScheduledFuture future);
public void sessionSupervisionTimerReStarted(ServerRxSession session, ScheduledFuture future);
public void sessionSupervisionTimerStopped(ServerRxSession session, ScheduledFuture future);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.common.api.app.IAppSessionState;
/**
* Diameter 3GPP IMS Rx Reference Point Client Session States
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public enum ClientRxSessionState implements IAppSessionState<ClientRxSessionState> {
IDLE(0),
PENDING_AAR(1),
PENDING_STR(2),
PENDING_EVENT(3),
PENDING_BUFFERED(4),
OPEN(5);
private int stateValue = -1;
ClientRxSessionState(int stateV) {
this.stateValue = stateV;
}
public ClientRxSessionState fromInt(int v) throws IllegalArgumentException {
switch (v) {
case 0:
return IDLE;
case 1:
return PENDING_AAR;
case 2:
return PENDING_STR;
case 3:
return PENDING_EVENT;
case 4:
return PENDING_BUFFERED;
case 5:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateValue;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.api.Message;
import org.jdiameter.api.rx.ClientRxSession;
/**
* Diameter 3GPP IMS Rx Reference Point Client Additional listener.
* Actions for FSM
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public interface IClientRxSessionContext {
void grantAccessOnDeliverFailure(ClientRxSession clientCCASessionImpl, Message request);
void denyAccessOnDeliverFailure(ClientRxSession clientCCASessionImpl, Message request);
void grantAccessOnFailureMessage(ClientRxSession clientCCASessionImpl);
void denyAccessOnFailureMessage(ClientRxSession clientCCASessionImpl);
void indicateServiceError(ClientRxSession clientCCASessionImpl);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.common.api.app.IAppSessionState;
/**
* Diameter 3GPP IMS Rx Reference Point Server Session states
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public enum ServerRxSessionState implements IAppSessionState<ServerRxSessionState> {
IDLE(0),
OPEN(1);
private int stateRepresentation = -1;
ServerRxSessionState(int v) {
this.stateRepresentation=v;
}
public ServerRxSessionState fromInt(int v) throws IllegalArgumentException {
switch(v) {
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateRepresentation;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.rx.ClientRxSessionListener;
import org.jdiameter.api.rx.ServerRxSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter 3GPP IMS Rx Reference Point.
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public interface IRxSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the clientSessionListener
*/
public ClientRxSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientRxSessionListener clientSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the serverSessionListener
*/
public ServerRxSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerRxSessionListener serverSessionListener);
/**
* @return the serverContextListener
*/
public IServerRxSessionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerRxSessionContext serverContextListener);
/**
* @return the clientContextListener
*/
public IClientRxSessionContext getClientContextListener();
/**
* @return the messageFactory
*/
public IRxMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(IRxMessageFactory messageFactory);
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientRxSessionContext clientContextListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.common.api.app.IAppSessionData;
/**
* Diameter 3GPP IMS Rx Reference Point Session Data
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public interface IRxSessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rx;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.rx.events.RxAAAnswer;
import org.jdiameter.api.rx.events.RxAARequest;
import org.jdiameter.api.rx.events.RxAbortSessionAnswer;
import org.jdiameter.api.rx.events.RxAbortSessionRequest;
import org.jdiameter.api.rx.events.RxReAuthAnswer;
import org.jdiameter.api.rx.events.RxReAuthRequest;
import org.jdiameter.api.rx.events.RxSessionTermAnswer;
import org.jdiameter.api.rx.events.RxSessionTermRequest;
/**
* Diameter 3GPP IMS Rx Reference Point Message Factory
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:richard.good@smilecoms.com"> Richard Good </a>
*/
public interface IRxMessageFactory {
public RxReAuthRequest createReAuthRequest(Request request);
public RxReAuthAnswer createReAuthAnswer(Answer answer);
public RxSessionTermRequest createSessionTermRequest(Request request);
public RxSessionTermAnswer createSessionTermAnswer(Answer answer);
public RxAbortSessionRequest createAbortSessionRequest(Request request);
public RxAbortSessionAnswer createAbortSessionAnswer(Answer answer);
public RxAARequest createAARequest(Request request);
public RxAAAnswer createAAAnswer(Answer answer);
public long[] getApplicationIds();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.Message;
import org.jdiameter.api.auth.ClientAuthSession;
/**
* Diameter Authorization Client Additional listener
* Actions for FSM
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IClientAuthActionContext {
long getAccessTimeout() throws InternalException;
void accessTimeoutElapses(ClientAuthSession session) throws InternalException;
void disconnectUserOrDev(ClientAuthSession session, Message request) throws InternalException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.auth.ServerAuthSession;
/**
* Diameter Authorization Server Additional listener
* Actions for FSM
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerAuthActionContext {
long getAccessTimeout() throws InternalException;
void accessTimeoutElapses(ServerAuthSession session) throws InternalException;
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAuthSessionData extends IAppSessionData {
//marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.auth.ClientAuthSessionListener;
import org.jdiameter.api.auth.ServerAuthSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Interface for Diameter Authentication Session Factories
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAuthSessionFactory extends IAppSessionFactory {
public IAuthMessageFactory getMessageFactory();
public void setMessageFactory(IAuthMessageFactory v);
public ServerAuthSessionListener getServerSessionListener();
public void setServerSessionListener(ServerAuthSessionListener v);
public StateChangeListener<AppSession> getStateListener();
public void setStateListener(StateChangeListener<AppSession> v);
public ClientAuthSessionListener getClientSessionListener();
public void setClientSessionListener(ClientAuthSessionListener v);
public IServerAuthActionContext getServerSessionContext();
public void setServerSessionContext(IServerAuthActionContext v);
public IClientAuthActionContext getClientSessionContext();
public void setClientSessionContext(IClientAuthActionContext v);
public boolean isStateles();
public void setStateles(boolean stateless);
/**
* @return the messageTimeout
*/
public long getMessageTimeout();
/**
* @param messageTimeout
* the messageTimeout to set
*/
public void setMessageTimeout(long messageTimeout);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.api.Answer;
import org.jdiameter.api.ApplicationId;
import org.jdiameter.api.Request;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IAuthMessageFactory {
public ApplicationId getApplicationId();
public int getAuthMessageCommandCode();
public AppRequestEvent createAuthRequest(Request request);
public AppAnswerEvent createAuthAnswer(Answer answer);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum ServerAuthSessionState implements IAppSessionState<ServerAuthSessionState> {
IDLE(0), OPEN(1), DISCONNECTED(2);
private final int value;
private ServerAuthSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ServerAuthSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
case 2:
return DISCONNECTED;
default:
throw new IllegalArgumentException();
}
}
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.auth;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ClientAuthSessionState implements IAppSessionState<ClientAuthSessionState> {
IDLE(0), OPEN(1), PENDING(2), DISCONNECTED(3);
private final int value;
private ClientAuthSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ClientAuthSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
case 2:
return PENDING;
case 3:
return DISCONNECTED;
default:
throw new IllegalArgumentException();
}
}
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app;
import org.jdiameter.api.app.AppSession;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAppSessionDataFactory<T extends IAppSessionData> {
public T getAppSessionData(Class<? extends AppSession> clazz, String sessionId);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app;
import org.jdiameter.api.ApplicationId;
/**
* Interface for Application Session Data
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAppSessionData {
public static final int NON_INITIALIZED = Integer.MIN_VALUE;
/**
* Returns the session-id of the session to which this data belongs to.
* @return a string representing the session-id
*/
public String getSessionId();
/**
* Sets the Application-Id of this Session Data session to which this data belongs to.
* @param applicationId the Application-Id
*/
public void setApplicationId(ApplicationId applicationId);
/**
* Returns the Application-Id of this Session Data session to which this data belongs to.
*
* @return the Application-Id
*/
public ApplicationId getApplicationId();
/**
* Removes this session data from storage
*
* @return true if removed, false otherwise
*/
public boolean remove();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAccSessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.api.ApplicationId;
import org.jdiameter.api.acc.ClientAccSessionListener;
import org.jdiameter.api.acc.ServerAccSessionListener;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAccSessionFactory extends IAppSessionFactory {
/**
* @return the serverSessionListener
*/
public ServerAccSessionListener getServerSessionListener();
/**
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerAccSessionListener serverSessionListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
/**
* @return the clientSessionListener
*/
public ClientAccSessionListener getClientSessionListener();
/**
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientAccSessionListener clientSessionListener);
/**
* @return the clientContextListener
*/
public IClientAccActionContext getClientContextListener();
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientAccActionContext clientContextListener);
/**
* @return the serverContextListener
*/
public IServerAccActionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerAccActionContext serverContextListener);
public void setMessageFactory(IAccMessageFactory messageFactory);
public IAccMessageFactory getMessageFactory();
public ApplicationId getApplicationId();
public void setApplicationId(ApplicationId id);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.api.Answer;
import org.jdiameter.api.ApplicationId;
import org.jdiameter.api.Request;
import org.jdiameter.api.acc.events.AccountAnswer;
import org.jdiameter.api.acc.events.AccountRequest;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IAccMessageFactory {
public ApplicationId getApplicationId();
public int getAccMessageCommandCode();
public AccountRequest createAccRequest(Request request);
public AccountAnswer createAccAnswer(Answer answer);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.Request;
import org.jdiameter.api.acc.ClientAccSession;
/**
* Diameter Accounting Client Additional listener
* Actions for FSM
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IClientAccActionContext {
/**
* Filling nested avp into interim message
* @param interimRequest instance of interim message which will be sent to server
*/
void interimIntervalElapses(ClientAccSession appSession,Request interimRequest) throws InternalException;
/**
* Call back for failed_send_record event
* @param accRequest accounting request record
* @return true if you want put message to buffer and false if you want to stop processing
*/
boolean failedSendRecord(ClientAccSession appSession,Request accRequest) throws InternalException;
/**
* Filling nested avp into STR
* @param sessionTermRequest instance of STR which will be sent to server
*/
void disconnectUserOrDev(ClientAccSession appSession,Request sessionTermRequest) throws InternalException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.acc.ServerAccSession;
import java.util.concurrent.ScheduledFuture;
/**
* Diameter Accounting Server Additional listener
* Actions for FSM
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerAccActionContext {
void sessionTimerStarted(ServerAccSession appSession, ScheduledFuture timer) throws InternalException;
void sessionTimeoutElapses(ServerAccSession appSession) throws InternalException;
void sessionTimerCanceled(ServerAccSession appSession, ScheduledFuture timer) throws InternalException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ClientAccSessionState implements IAppSessionState<ClientAccSessionState> {
IDLE(0),
OPEN(1),
PENDING_EVENT(2),
PENDING_START (3) ,
PENDING_INTERIM(4),
PENDING_CLOSE(5),
PENDING_BUFFERED(6);
private final int value;
private ClientAccSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ClientAccSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
case 2:
return PENDING_EVENT;
case 3:
return PENDING_START;
case 4:
return PENDING_INTERIM;
case 5:
return PENDING_CLOSE;
case 6:
return PENDING_BUFFERED;
default:
throw new IllegalArgumentException();
}
}
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.acc;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ServerAccSessionState implements IAppSessionState<ServerAccSessionState> {
IDLE(0),
OPEN(1);
private final int value;
private ServerAccSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ServerAccSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException();
}
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app;
import org.jdiameter.api.ApplicationId;
import org.jdiameter.api.app.AppSession;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IAppSessionFactory {
AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args);
AppSession getSession(String sessionId, Class<? extends AppSession> aClass);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import java.util.concurrent.ScheduledFuture;
import org.jdiameter.api.Request;
import org.jdiameter.api.ro.ServerRoSession;
/**
* Diameter Ro Application Server Additional listener
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerRoSessionContext {
public void sessionSupervisionTimerExpired(ServerRoSession session);
/**
* This is called always when Tcc starts
* @param session
* @param future
*/
@SuppressWarnings("unchecked")
public void sessionSupervisionTimerStarted(ServerRoSession session, ScheduledFuture future);
@SuppressWarnings("unchecked")
public void sessionSupervisionTimerReStarted(ServerRoSession session, ScheduledFuture future);
@SuppressWarnings("unchecked")
public void sessionSupervisionTimerStopped(ServerRoSession session, ScheduledFuture future);
/**
* Returns seconds value representing default validity time, App session uses 2x for Tcc timer
* @return
*/
public long getDefaultValidityTime();
public void timeoutExpired(Request request);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.api.Message;
import org.jdiameter.api.ro.ClientRoSession;
/**
* Diameter Ro Application Client Additional listener
* Actions for FSM
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IClientRoSessionContext {
long getDefaultTxTimerValue();
void txTimerExpired(ClientRoSession session);
int getDefaultCCFHValue();
int getDefaultDDFHValue();
void grantAccessOnDeliverFailure(ClientRoSession clientCCASessionImpl,Message request);
void denyAccessOnDeliverFailure(ClientRoSession clientCCASessionImpl,Message request);
void grantAccessOnTxExpire(ClientRoSession clientCCASessionImpl);
void denyAccessOnTxExpire(ClientRoSession clientCCASessionImpl);
void grantAccessOnFailureMessage(ClientRoSession clientCCASessionImpl);
void denyAccessOnFailureMessage(ClientRoSession clientCCASessionImpl);
void indicateServiceError(ClientRoSession clientCCASessionImpl);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.api.Answer;
import org.jdiameter.api.Request;
import org.jdiameter.api.auth.events.ReAuthAnswer;
import org.jdiameter.api.auth.events.ReAuthRequest;
import org.jdiameter.api.ro.events.RoCreditControlAnswer;
import org.jdiameter.api.ro.events.RoCreditControlRequest;
/**
* Diameter Ro Application Message Factory
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IRoMessageFactory {
public ReAuthRequest createReAuthRequest(Request request);
public ReAuthAnswer createReAuthAnswer(Answer answer);
public RoCreditControlRequest createCreditControlRequest(Request request);
public RoCreditControlAnswer createCreditControlAnswer(Answer answer);
public long[] getApplicationIds();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.common.api.app.IAppSessionState;
/**
* Diameter Ro Application Server states
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public enum ServerRoSessionState implements IAppSessionState<ServerRoSessionState> {
IDLE(0),
OPEN(1);
private int stateRepresentation = -1;
ServerRoSessionState(int v) {
this.stateRepresentation=v;
}
public ServerRoSessionState fromInt(int v) throws IllegalArgumentException {
switch(v)
{
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue() {
return stateRepresentation;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author Erick Svenson
*/
public enum ClientRoSessionState implements IAppSessionState<ClientRoSessionState>{
IDLE(0),
PENDING_EVENT(1),
PENDING_INITIAL(2),
PENDING_UPDATE(3),
PENDING_TERMINATION(4),
PENDING_BUFFERED(5),
OPEN(6);
private int stateValue = -1;
ClientRoSessionState(int stateV)
{
this.stateValue=stateV;
}
public ClientRoSessionState fromInt(int v) throws IllegalArgumentException
{
switch(v)
{
case 0:
return IDLE;
case 1:
return PENDING_EVENT;
case 2:
return PENDING_INITIAL;
case 3:
return PENDING_UPDATE;
case 4:
return PENDING_TERMINATION;
case 5:
return PENDING_BUFFERED;
case 6:
return OPEN;
default:
throw new IllegalArgumentException("Illegal value of int representation!!!!");
}
}
public int getValue()
{
return stateValue;
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IRoSessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.ro;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.ro.ClientRoSessionListener;
import org.jdiameter.api.ro.ServerRoSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
* Session Factory interface for Diameter Ro Application.
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IRoSessionFactory extends IAppSessionFactory {
/**
* Get stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the clientSessionListener
*/
public ClientRoSessionListener getClientSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has
* similar effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientRoSessionListener clientSessionListener);
/**
* Get stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @return the serverSessionListener
*/
public ServerRoSessionListener getServerSessionListener();
/**
* Set stack wide listener for sessions. In local mode it has similar
* effect as setting this directly in app session.
* However clustered session use this value when recreated!
*
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerRoSessionListener serverSessionListener);
/**
* @return the serverContextListener
*/
public IServerRoSessionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerRoSessionContext serverContextListener);
/**
* @return the clientContextListener
*/
public IClientRoSessionContext getClientContextListener();
/**
* @return the messageFactory
*/
public IRoMessageFactory getMessageFactory();
/**
* @param messageFactory
* the messageFactory to set
*/
public void setMessageFactory(IRoMessageFactory messageFactory);
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientRoSessionContext clientContextListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import java.util.concurrent.ScheduledFuture;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.rf.ServerRfSession;
/**
* Diameter Accounting Server Additional listener
* Actions for FSM
*
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IServerRfActionContext {
void sessionTimerStarted(ServerRfSession appSession, ScheduledFuture timer) throws InternalException;
void sessionTimeoutElapses(ServerRfSession appSession) throws InternalException;
void sessionTimerCanceled(ServerRfSession appSession, ScheduledFuture timer) throws InternalException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import org.jdiameter.common.api.app.IAppSessionData;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IRfSessionData extends IAppSessionData {
// marker interface
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum ClientRfSessionState implements IAppSessionState<ClientRfSessionState> {
IDLE(0),
OPEN(1),
PENDING_EVENT(2),
PENDING_START (3) ,
PENDING_INTERIM(4),
PENDING_CLOSE(5),
PENDING_BUFFERED(6);
private final int value;
private ClientRfSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ClientRfSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
case 2:
return PENDING_EVENT;
case 3:
return PENDING_START;
case 4:
return PENDING_INTERIM;
case 5:
return PENDING_CLOSE;
case 6:
return PENDING_BUFFERED;
default:
throw new IllegalArgumentException();
}
}
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.Request;
import org.jdiameter.api.rf.ClientRfSession;
/**
* Diameter Accounting Client Additional listener
* Actions for FSM
*
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IClientRfActionContext {
/**
* Filling nested avp into interim message
* @param interimRequest instance of interim message which will be sent to server
*/
void interimIntervalElapses(ClientRfSession appSession,Request interimRequest) throws InternalException;
/**
* Call back for failed_send_record event
* @param accRequest accounting request record
* @return true if you want put message to buffer and false if you want to stop processing
*/
boolean failedSendRecord(ClientRfSession appSession,Request accRequest) throws InternalException;
/**
* Filling nested avp into STR
* @param sessionTermRequest instance of STR which will be sent to server
*/
void disconnectUserOrDev(ClientRfSession appSession,Request sessionTermRequest) throws InternalException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import org.jdiameter.common.api.app.IAppSessionState;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum ServerRfSessionState implements IAppSessionState<ServerRfSessionState> {
IDLE(0),
OPEN(1);
private final int value;
private ServerRfSessionState(int val) {
value = val;
}
public final int getValue() {
return value;
}
public final ServerRfSessionState fromInt(int val) throws IllegalArgumentException {
switch (val) {
case 0:
return IDLE;
case 1:
return OPEN;
default:
throw new IllegalArgumentException();
}
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.app.rf;
import org.jdiameter.api.ApplicationId;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateChangeListener;
import org.jdiameter.api.rf.ClientRfSessionListener;
import org.jdiameter.api.rf.ServerRfSessionListener;
import org.jdiameter.common.api.app.IAppSessionFactory;
/**
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IRfSessionFactory extends IAppSessionFactory {
/**
* @return the serverSessionListener
*/
public ServerRfSessionListener getServerSessionListener();
/**
* @param serverSessionListener
* the serverSessionListener to set
*/
public void setServerSessionListener(ServerRfSessionListener serverSessionListener);
/**
* @return the stateListener
*/
public StateChangeListener<AppSession> getStateListener();
/**
* @param stateListener
* the stateListener to set
*/
public void setStateListener(StateChangeListener<AppSession> stateListener);
/**
* @return the clientSessionListener
*/
public ClientRfSessionListener getClientSessionListener();
/**
* @param clientSessionListener
* the clientSessionListener to set
*/
public void setClientSessionListener(ClientRfSessionListener clientSessionListener);
/**
* @return the clientContextListener
*/
public IClientRfActionContext getClientContextListener();
/**
* @param clientContextListener
* the clientContextListener to set
*/
public void setClientContextListener(IClientRfActionContext clientContextListener);
/**
* @return the serverContextListener
*/
public IServerRfActionContext getServerContextListener();
/**
* @param serverContextListener
* the serverContextListener to set
*/
public void setServerContextListener(IServerRfActionContext serverContextListener);
/**
* @return the messageTimeout
*/
public long getMessageTimeout();
/**
* @param messageTimeout
* the messageTimeout to set
*/
public void setMessageTimeout(long messageTimeout);
public ApplicationId getApplicationId();
public void setApplicationId(ApplicationId id);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.concurrent;
import org.jdiameter.common.api.statistic.IStatistic;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public class DummyConcurrentFactory implements IConcurrentFactory {
public Thread getThread(Runnable runnuble) {
return new Thread(runnuble);
}
public Thread getThread(String namePrefix, Runnable runnuble) {
return new Thread(runnuble, namePrefix);
}
public List<Thread> getThreads() {
return new ArrayList<Thread>();
}
public ThreadGroup getThreadGroup() {
return null;
}
public ScheduledExecutorService getScheduledExecutorService(String name) {
return Executors.newScheduledThreadPool(4);
}
public Collection<ScheduledExecutorService> getScheduledExecutorServices() {
return new ArrayList<ScheduledExecutorService>();
}
public void shutdownNow(ScheduledExecutorService service) {
}
public IStatistic getStatistic() {
return null;
}
@Override
public List<IStatistic> getStatistics() {
// TODO Auto-generated method stub
return new ArrayList<IStatistic>();
}
public void shutdownAllNow() {
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.concurrent;
import org.jdiameter.common.api.statistic.IStatistic;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ScheduledExecutorService;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IConcurrentFactory {
enum ScheduledExecServices {
ProcessingMessageTimer,
RedirectMessageTimer,
DuplicationMessageTimer,
PeerOverloadTimer,
ConnectionTimer,
StatisticTimer,
ApplicationSession
}
// Thread
Thread getThread(Runnable runnuble);
Thread getThread(String namePrefix, Runnable runnuble);
List<Thread> getThreads();
ThreadGroup getThreadGroup();
// ScheduledExecutorService
ScheduledExecutorService getScheduledExecutorService(String name);
Collection<ScheduledExecutorService> getScheduledExecutorServices();
void shutdownNow(ScheduledExecutorService service);
// Common
IStatistic getStatistic();
List<IStatistic> getStatistics();
void shutdownAllNow();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.concurrent;
import java.util.concurrent.Callable;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadFactory;
import org.jdiameter.common.api.statistic.IStatistic;
import org.jdiameter.common.api.statistic.IStatisticRecord;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface IConcurrentEntityFactory {
ThreadFactory newThreadFactory(String threadPoolName);
RejectedExecutionHandler newRejectedExecutionHandler(IStatisticRecord rejectedCount);
//TODO: get rid of those.
<L> Callable<L> newDefaultCallable(Callable<L> runnable,IStatistic statistic , IStatisticRecord... statisticRecords);
Runnable newDefaultRunnable(Runnable runnable, IStatistic statistic, IStatisticRecord... statisticRecords);
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.statistic;
import org.jdiameter.api.Statistic;
/**
* This interface describe extends methods of base class
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IStatistic extends Statistic{
enum Groups {
Peer("Peer statistic"),
PeerFSM("Peer FSM statistic"),
Network("Network statistic"),
Concurrent(" Concurrent factory statistics"),
ScheduledExecService("ScheduledExecutorService statistic");
private String description;
Groups(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}
/**
* Merge statistic
*
* @param rec external statistic
*/
public void appendCounter(IStatisticRecord... rec);
public IStatisticRecord getRecordByName(String name);
public IStatisticRecord getRecordByName(IStatisticRecord.Counters name);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.statistic;
import java.util.List;
import java.util.Set;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IStatisticManager {
IStatisticRecord newCounterRecord(IStatisticRecord.Counters recordDescription);
IStatisticRecord newCounterRecord(IStatisticRecord.Counters recordDescription, IStatisticRecord.ValueHolder counters);
IStatisticRecord newCounterRecord(IStatisticRecord.Counters recordDescription, IStatisticRecord.ValueHolder counters, IStatisticRecord... rec);
IStatisticRecord newCounterRecord(String name, String description);
IStatisticRecord newCounterRecord(String name, String description, IStatisticRecord.ValueHolder counter);
IStatisticRecord newPerSecondCounterRecord(String name,IStatisticRecord.Counters recordDescription, IStatisticRecord record);
IStatistic newStatistic(String name, IStatistic.Groups group, IStatisticRecord... rec);
//IStatistic newStatistic(String name, String description, IStatisticRecord... rec);
//void removePerSecondCounterRecord(String name,IStatisticRecord.Counters recordDescription);
void removePerSecondCounterRecord(IStatisticRecord rec);
//void removeStatistic(String name);
//void removeStatistic(String name, IStatistic.Groups group);
void removeStatistic(IStatistic stat);
// --- non factory methods, metadata access
public boolean isOn();
public long getPause();
public long getDelay();
public Set<String> getEnabled();
// --- access method
public List<IStatisticRecord> getPSStatisticRecord();
public List<IStatistic> getStatistic();
}
| Java |
package org.jdiameter.common.api.statistic;
/**
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IStatisticProcessor {
public void start();
public void stop();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.common.api.statistic;
import org.jdiameter.api.StatisticRecord;
/**
* This interface describe extends methods of base class
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface IStatisticRecord extends StatisticRecord{
enum Counters {
AppGenRequest("Count of app generated requests"),
AppGenRejectedRequest("Count of rejected app generated requests"),
AppGenResponse("Count of app generated responses"),
AppGenRejectedResponse("Count of rejected app generated responses"),
NetGenRequest("Count of network generated processed requests"),
NetGenRejectedRequest("Count of network generated rejected requests"),
NetGenResponse("Count of network generated processed responses"),
NetGenRejectedResponse("Count of network generated rejected responses"),
SysGenResponse("Count of platform generated responses"),
AppGenRequestPerSecond("Count of app generated request per second"),
AppGenResponsePerSecond("Count of app generated responses per second"),
NetGenResponsePerSecond("Count of network generated responses per second"),
NetGenRequestPerSecond("Count of network generated request per second"),
RequestListenerCount("Count of network request appIdToNetListener"),
SelectorCount("Count of network request selectorToNetListener"),
HeapMemory("Heap memory usage"),
NoHeapMemory("No-heap memory usage"),
MessageProcessingTime("Average time of processing message"),
ConcurrentThread("Count thread in default thread group"),
ConcurrentScheduledExecutedServices("Count of ScheduledExecutorServices"),
WorkingThread("Count of working thread"),
CanceledTasks("Count of canceled thread"),
ExecTimeTask("Average execution time of task"),
WaitTimeTask("Average waiting time for execution task"),
BrokenTasks("Count of broken thread"),
RejectedTasks("Count of rejected tasks"),
QueueSize("Peer FSM queue size");
private String description;
Counters(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}
/**
* Increment counter
*/
void inc();
/**
* Increment counter
*/
void inc(long value);
/**
* Decrement counter
*/
void dec();
/**
* Set value of statistic
*
* @param value new value of record
*/
void setLongValue(long value);
/**
* Set value of statistic
*
* @param value new value of record
*/
void setDoubleValue(double value);
/**
* ValueHolder for external statistics
*/
public static interface ValueHolder {
String getValueAsString();
}
public static interface IntegerValueHolder extends ValueHolder {
/**
* Return value of counter as integer
*
* @return value of counter
*/
int getValueAsInt();
}
public static interface LongValueHolder extends ValueHolder {
/**
* Return value of counter as long
*
* @return value of counter
*/
long getValueAsLong();
}
public static interface DoubleValueHolder extends ValueHolder {
/**
* Return value of counter as double
*
* @return value of counter
*/
double getValueAsDouble();
}
//===========================
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.sh;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateMachine;
import org.jdiameter.api.sh.events.ProfileUpdateRequest;
import org.jdiameter.api.sh.events.PushNotificationAnswer;
import org.jdiameter.api.sh.events.SubscribeNotificationsRequest;
import org.jdiameter.api.sh.events.UserDataRequest;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ClientShSession extends AppSession, StateMachine{
/**
* Send profile update request to server
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendProfileUpdateRequest(ProfileUpdateRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send subscription request to server
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendSubscribeNotificationsRequest(SubscribeNotificationsRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send user data request to server
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendUserDataRequest(UserDataRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void sendPushNotificationAnswer(PushNotificationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.sh;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.sh.events.ProfileUpdateAnswer;
import org.jdiameter.api.sh.events.ProfileUpdateRequest;
import org.jdiameter.api.sh.events.PushNotificationRequest;
import org.jdiameter.api.sh.events.SubscribeNotificationsAnswer;
import org.jdiameter.api.sh.events.SubscribeNotificationsRequest;
import org.jdiameter.api.sh.events.UserDataAnswer;
import org.jdiameter.api.sh.events.UserDataRequest;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ClientShSessionListener {
public void doSubscribeNotificationsAnswerEvent(ClientShSession session, SubscribeNotificationsRequest request, SubscribeNotificationsAnswer answer)throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doProfileUpdateAnswerEvent(ClientShSession session, ProfileUpdateRequest request, ProfileUpdateAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doPushNotificationRequestEvent(ClientShSession session, PushNotificationRequest request)throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doUserDataAnswerEvent(ClientShSession session,UserDataRequest request, UserDataAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ShSessionEventListener that the ClientShSession has recived not Sh message.
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.sh;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateMachine;
import org.jdiameter.api.sh.events.ProfileUpdateAnswer;
import org.jdiameter.api.sh.events.PushNotificationRequest;
import org.jdiameter.api.sh.events.SubscribeNotificationsAnswer;
import org.jdiameter.api.sh.events.UserDataAnswer;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ServerShSession extends AppSession, StateMachine{
/**
* Send profile update notification request to client
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendPushNotificationRequest(PushNotificationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send profile update answer to client
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendProfileUpdateAnswer(ProfileUpdateAnswer answer ) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send subscribe notification answer to client
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendSubscribeNotificationsAnswer(SubscribeNotificationsAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send user data answer to client
* @param request Authentication-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendUserDataAnswer(UserDataAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.sh;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.sh.events.ProfileUpdateRequest;
import org.jdiameter.api.sh.events.PushNotificationAnswer;
import org.jdiameter.api.sh.events.PushNotificationRequest;
import org.jdiameter.api.sh.events.SubscribeNotificationsRequest;
import org.jdiameter.api.sh.events.UserDataRequest;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ServerShSessionListener {
public void doSubscribeNotificationsRequestEvent(ServerShSession session, SubscribeNotificationsRequest request)throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doProfileUpdateRequestEvent(ServerShSession session, ProfileUpdateRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doPushNotificationAnswerEvent(ServerShSession session, PushNotificationRequest request, PushNotificationAnswer answer)throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
public void doUserDataRequestEvent(ServerShSession session,UserDataRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ShSessionEventListener that the ServerShSession has recived not Sh message.
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This class implements counter of statistic
*
* @author erick.svenson@yahoo.com
* @version 1.5.1 Final
*/
public interface StatisticRecord {
/**
* Return name of counter
* @return name of counter
*/
String getName();
/**
* Return description of counter
* @return description of counter
*/
String getDescription();
/**
* Return value of counter as integer
* @return value of counter
*/
int getValueAsInt();
/**
* Return value of counter as double
* @return value of counter
*/
double getValueAsDouble();
/**
* Return value of counter as long
* @return value of counter
*/
long getValueAsLong();
/**
* Return child counters
* @return array of child counters
*/
StatisticRecord[] getChilds();
/**
* Reset counter and all child counters
*/
void reset();
/**
* Enable/Disable counter
*
* @param e on/off parameter
*/
public void enable(boolean e);
public boolean isEnabled();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This interface is implemented by sack vendors to let users know the local properties of a Diameter Stack implementation
* and current instance.
*
* @author erick.svenson@yahoo.com
* @author artem.litvinov@gmail.com
* @version 1.5.1 Final
*/
public interface MetaData extends Wrapper {
/**
* @return Retrieves the stack's major version number.
*/
int getMajorVersion();
/**
* @return Retrieves the stack's minor version number.
*/
int getMinorVersion();
/**
* @return stack type
*/
StackType getStackType();
/**
* @return information about local instance of peer
*/
Peer getLocalPeer();
/**
* Return configuration parameters
* @return configuration
*/
Configuration getConfiguration();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation allow describe information about child of command / group avp
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Child {
/**
* Return reference to child class or interface with AvpDscr annotation
* @return reference to child class or interface with AvpDscr annotation
*/
Class<?> ref();
/**
* Return child position
* @return child position
*/
int pos() default -1;
/**
* Return minimum count of this child in parent avp set
* @return minimum count of this child in parent avp set
*/
int min() default 0;
/**
* Return maximum count of this child in parent avp set
* @return maximum count of this child in parent avp set s
*/
int max() default 1;
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
/**
* This enumerated class describe base type of avp.
* For more information look RFC 3588
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum AvpType {
OctetString,
Integer32,
Integer64,
Unsigned32,
Unsigned64,
Float32,
Float64,
Grouped,
Address,
Time,
UTF8String,
DiameterIdentity,
DiameterURI,
Enumerated,
IPFilterRule,
QoSFilterRule
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation allows describe Java POJO object as Diameter Command element
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface CommandDscr {
/**
* Return command code
* @return command code
*/
int code();
/**
* Return command name
* @return command name
*/
String name() default "unknown";
/**
* Return array of command flags
* @return array of command flags
*/
CommandFlag[] flags() default{};
/**
* Return command application-id
* @return command application-id
*/
long appId() default 0;
/**
* Return array of command child avp
* @return array of command child avp
*/
Child[] childs() default {};
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation allows get child object from command / group avp and
* get value for simple avp
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.CONSTRUCTOR,ElementType.METHOD})
public @interface Getter {
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation allows describe Java POJO object as Diameter avp element
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface AvpDscr {
/**
* Return avp code
* @return avp code
*/
int code();
/**
* Return avp name
* @return avp name
*/
String name() default "unknown";
/**
* Return avp type
* @return avp type
*/
AvpType type();
/**
* Return avp vendor id
* @return avp vendor id
*/
long vendorId() default 0;
/**
* Return array of mandatory flags
* @return array of mandatory flags
*/
AvpFlag[] must() default {};
/**
* Return array optional flags
* @return array optional flags
*/
AvpFlag[] may() default {};
/**
* Return array flags which should not be set
* @return array flags which should not be set
*/
AvpFlag[] shldNot() default {};
/**
* Return array flags which must not be set
* @return array flags which must not be set
*/
AvpFlag[] mustNot() default {};
/**
* Return true if the flag can be encrypted
* @return true if the flag can be encrypted
*/
boolean mayEncr() default false;
/**
* Return array of avp child ( for grouped avp )
* @return array of avp child
*/
Child[] childs() default {};
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
/**
* This enumerated class describe all flags of avp header
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum AvpFlag {
/**
* Mandatory flag
*/
M,
/**
* Vendor-Id flag
*/
V,
/**
* Encryption flag
*/
P
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
/**
* This enumerated class describe all flags of message
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public enum CommandFlag {
/**
* Request flag
*/
R,
/**
* Proxiable flag
*/
P,
/**
* Error flag
*/
E,
/**
* Re-transmitted flag
*/
T,
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation allows set child object to command / group avp and
* set value to simple avp
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.CONSTRUCTOR,ElementType.METHOD})
public @interface Setter {
/**
* This enumeration defines for what Avp (known/not known) is used setter
*/
enum Type {
/**
* For known avp
*/
DEFINED,
/**
* For unknown avp
*/
UNDEFINED
}
/**
* Return type of setter
* @return type of setter
*/
Type value() default Type.DEFINED;
} | Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This interface allows to control the stack at overload moment
*
* @author erick.svenson@yahoo.com
* @version 1.5.1 Final
*/
public interface OverloadManager {
/**
* Notify stack that parent application has overload
* @param id Overloaded application id (null for stack owner)
* @param type type of overload (CPU, Memory..)
* @param value value of overload
*/
void parentAppOverloadDetected(ApplicationId id, int type, double value);
/**
* Notifies stack that parent application has overload cased
* @param id Overloaded application id (null for stack owner)
* @param type type of overload (CPU, Memory..)
*/
void parentAppOverloadCeased(ApplicationId id, int type);
/**
* Append overload listener
* @param listener overload listener instance
* @param lowThreshold low value of overload threshold (for example 0.8 - 1.0 is overload Range)
* @param highThreshold high value of overload threshold (for example 0.8 - 1.0 is overload Range)
* @param qIndex overload element index
*/
void addOverloadListener(OverloadListener listener, double lowThreshold, double highThreshold, int qIndex);
/**
* Remove overload listener
* @param listener overload listener instance
* @param qIndex overload element index
*/
void removeOverloadListener(OverloadListener listener, int qIndex);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.auth.events.ReAuthAnswer;
import org.jdiameter.api.auth.events.ReAuthRequest;
import org.jdiameter.api.cca.events.JCreditControlRequest;
/**
* This interface defines the possible actions for the different states in the server
* Credit-Control Application state machine.
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ServerCCASessionListener {
/**
* Notifies this ServerCCASessionListener that the ServerCCASession has received a CCR message.
*
* @param session parent application session (FSM)
* @param request request object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doCreditControlRequest(ServerCCASession session, JCreditControlRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ServerCCASessionListener that the ServerCCASession has received a RAA message.
*
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doReAuthAnswer(ServerCCASession session, ReAuthRequest request, ReAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ServerCCASessionListener that the ServerCCASession has received not CCA message,
* now it can be even RAA.
*
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.auth.events.ReAuthAnswer;
import org.jdiameter.api.cca.events.JCreditControlRequest;
/**
* Basic class for client credit-control application specific session
* Listener must be injected from constructor of implementation class
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ClientCCASession extends CCASession {
/**
* Send credit-control request to server
* @param request Credit-Control-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendCreditControlRequest(JCreditControlRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send re-authentication answer to server
* @param answer Re-Auth-Answer event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendReAuthAnswer(ReAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca.events;
import org.jdiameter.api.Avp;
import org.jdiameter.api.app.AppAnswerEvent;
/**
* The Credit-Control-Answer message (CCA) is indicated by the command-code field being set to 272
* and the 'R' bit being cleared in the Command Flags field. It is used between the credit-control
* server and the Diameter credit-control client to acknowledge a Credit-Control-Request command.
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface JCreditControlAnswer extends AppAnswerEvent {
public static final String _SHORT_NAME = "CCA";
public static final String _LONG_NAME = "Credit-Control-Answer";
public static final int code = 272;
boolean isCreditControlFailureHandlingAVPPresent();
int getCredidControlFailureHandlingAVPValue();
boolean isDirectDebitingFailureHandlingAVPPresent();
int getDirectDebitingFailureHandlingAVPValue();
boolean isRequestTypeAVPPresent();
int getRequestTypeAVPValue();
Avp getValidityTimeAvp();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca.events;
import org.jdiameter.api.app.AppRequestEvent;
/**
* The Credit-Control-Request message (CCR) is indicated by the command-code field being set to
* 272 and the 'R' bit being set in the Command Flags field. It is used between the Diameter
* credit-control client and the credit-control server to request credit authorization for a given
* service.
*
* The Auth-Application-Id MUST be set to the value 4, indicating the Diameter credit-control
* application.
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface JCreditControlRequest extends AppRequestEvent {
public static final String _SHORT_NAME = "CCR";
public static final String _LONG_NAME = "Credit-Control-Request";
public static final int code = 272;
boolean isRequestedActionAVPPresent();
int getRequestedActionAVPValue();
boolean isRequestTypeAVPPresent();
int getRequestTypeAVPValue();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.auth.events.ReAuthRequest;
import org.jdiameter.api.cca.events.JCreditControlAnswer;
import org.jdiameter.api.cca.events.JCreditControlRequest;
/**
* This interface defines the possible actions for the different states in the client
* Credit-Control Application state machine.
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ClientCCASessionListener {
/**
* Notifies this ClientCCASessionListener that the ClientCCASession has received a CCA message.
*
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error has occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doCreditControlAnswer(ClientCCASession session, JCreditControlRequest request, JCreditControlAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ClientCCASessionListener that the ClientCCASession has received a RAR message.
*
* @param session parent application session (FSM)
* @param request request object
* @throws InternalException The InternalException signals that internal error has occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doReAuthRequest(ClientCCASession session, ReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this ClientCCASessionListener that the ClientCCASession has received a non CCA message, usually some extension.
*
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error has occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Provides with default value of DDFH AVP - this is used when AVP is not present or send
* operation fails for some reason.<br>
* DDFH is of type Enumerated - int32
*
* @return
*/
int getDefaultDDFHValue();
/**
* Provides with default value of CCFH AVP - this is used when AVP is not present or send
* operation fails for some reason.<br>
* CCFH is of type Enumerated - int32
*
* @return
*/
int getDefaultCCFHValue();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.auth.events.ReAuthRequest;
import org.jdiameter.api.cca.events.JCreditControlAnswer;
/**
* Basic class for server credit-control application specific session
* Listener must be injected from constructor of implementation class
*
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ServerCCASession extends CCASession {
/**
* Send credit-control answer to client
* @param answer Credit-Control-Answer event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendCreditControlAnswer(JCreditControlAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
/**
* Send re-authentication request to client
* @param request Re-Auth-Request event instance
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
**/
public void sendReAuthRequest(ReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cca;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateMachine;
/**
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface CCASession extends AppSession, StateMachine{
// simple marker interface.
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This interface introduces a capability to work with a network.
* You can get instance of this interface over stack instance:
* <code>
* if (stack.isWrapperFor(Network.class)) {
* Network netWork = stack.unwrap(Network.class);
* .....
* }
* </code>
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @version 1.5.1 Final
*/
public interface Network extends Wrapper {
/**
* Return local peer network statistics
* @return network statistics
*/
Statistic getStatistic();
/**
* Register listener for processing network requests
* @param applicationId application Id
* @param listener request listener
* @throws ApplicationAlreadyUseException if listener with predefined appId already append to network
*/
void addNetworkReqListener(NetworkReqListener listener, ApplicationId... applicationId) throws ApplicationAlreadyUseException;
/**
* Register listener for processing network requests
* @param selector application selector
* @param listener request listener
*/
void addNetworkReqListener(NetworkReqListener listener, Selector<Message, ApplicationId>... selector);
/**
* Remove request listener
* @param applicationId application id of listener
*/
void removeNetworkReqListener(ApplicationId... applicationId);
/**
* Remove request listener
* @param selector selector of application
*/
void removeNetworkReqListener(Selector<Message, ApplicationId>... selector);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
import java.io.Serializable;
import java.net.InetAddress;
import java.util.Date;
/**
* The Avp class implements a Diameter AVP. This class allows applications to build and read arbitrary Diameter AVP objects. Wrapper
* interface allows adapt message to any driver vendor specific interface Serializable interface allows use this class in SLEE Event objects
*
* @version 1.5.1 Final
* @author erick.svenson@yahoo.com
* @author artem.litvinov@gmail.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface Avp extends Wrapper, Serializable {
/**
* The Accounting-Realtime-Required AVP code
*/
public static final int ACCOUNTING_REALTIME_REQUIRED = 483;
/**
* The Auth-Request-Type AVP code
*/
public static final int AUTH_REQUEST_TYPE = 274;
/**
* The Authorization-Lifetime AVP code
*/
public static final int AUTHORIZATION_LIFETIME = 291;
/**
* The Auth-Grace-Period AVP code
*/
public static final int AUTH_GRACE_PERIOD = 276;
/**
* The Auth-Session-State AVP code
*/
public static final int AUTH_SESSION_STATE = 277;
/**
* The Class AVP code
*/
public static final int CLASS = 25;
/**
* The E2E-Sequence-Avp AVP code
*/
public static final int E2E_SEQUENCE_AVP = 300;
/**
* The Error-reporting-host AVP code
*/
public static final int ERROR_REPORTING_HOST = 294;
/**
* The Event-Timestamp AVP code
*/
public static final int EVENT_TIMESTAMP = 55;
/**
* The File-Avp AVP code
*/
public static final int FAILED_AVP = 279;
/**
* The Acct-Interim-Interval AVP code
*/
public static final int ACCT_INTERIM_INTERVAL = 85;
/**
* The User-Name AVP code
*/
public static final int USER_NAME = 1;
/**
* The Result-Code AVP code
*/
public static final int RESULT_CODE = 268;
/**
* Experimental-Result AVP code
*/
public static final int EXPERIMENTAL_RESULT = 297;
/**
* The Experimental-Result-Code AVP code
*/
public static final int EXPERIMENTAL_RESULT_CODE = 298;
/**
* The Termination-Cause AVP code
*/
public static final int TERMINATION_CAUSE = 295;
/**
* The FirmWare-Revision AVP code
*/
public static final int FIRMWARE_REVISION = 267;
/**
* The Host-IP-Address AVP code
*/
public static final int HOST_IP_ADDRESS = 257;
/**
* The Muti-Round-Timeout AVP code
*/
public static final int MULTI_ROUND_TIMEOUT = 272;
/**
* The Origin-Host AVP code
*/
public static final int ORIGIN_HOST = 264;
/**
* The Origin-Realm AVP code
*/
public static final int ORIGIN_REALM = 296;
/**
* The Origin-State-Id AVP code
*/
public static final int ORIGIN_STATE_ID = 278;
/**
* The Redirect-Host AVP code
*/
public static final int REDIRECT_HOST = 292;
/**
* The Redirect-Host-Usage AVP code
*/
public static final int REDIRECT_HOST_USAGE = 261;
/**
* The Redirect-Max-Cache-Time AVP code
*/
public static final int REDIRECT_MAX_CACHE_TIME = 262;
/**
* The Product-Name AVP code
*/
public static final int PRODUCT_NAME = 269;
/**
* The Session-Id AVP code
*/
public static final int SESSION_ID = 263;
/**
* The Session-Timeout AVP code
*/
public static final int SESSION_TIMEOUT = 27;
/**
* The Session-Binding AVP code
*/
public static final int SESSION_BINDING = 270;
/**
* The Session-Server-Failover AVP code
*/
public static final int SESSION_SERVER_FAILOVER = 271;
/**
* The Destination-Host AVP code
*/
public static final int DESTINATION_HOST = 293;
/**
* The Destination-Realm AVP code
*/
public static final int DESTINATION_REALM = 283;
/**
* The Route-Record AVP code
*/
public static final int ROUTE_RECORD = 282;
/**
* The Proxy-Info AVP code
*/
public static final int PROXY_INFO = 284;
/**
* The Proxy-Host AVP code
*/
public static final int PROXY_HOST = 280;
/**
* The Proxy-State AVP code
*/
public static final int PROXY_STATE = 33;
/**
* The Authentication-Application-Id AVP code
*/
public static final int AUTH_APPLICATION_ID = 258;
/**
* The Accounting-Application-Id AVP code
*/
public static final int ACCT_APPLICATION_ID = 259;
/**
* The Inband-Security-Id AVP code
*/
public static final int INBAND_SECURITY_ID = 299;
/**
* The Vendor-Id AVP code
*/
public static final int VENDOR_ID = 266;
/**
* The Supported-Vendor-Id AVP code
*/
public static final int SUPPORTED_VENDOR_ID = 265;
/**
* The Vendor-Specific-Application-Id AVP code
*/
public static final int VENDOR_SPECIFIC_APPLICATION_ID = 260;
/**
* The Re-Authentication-Request-type AVP code
*/
public static final int RE_AUTH_REQUEST_TYPE = 285;
/**
* The Accounting-Record-Type AVP code
*/
public static final int ACC_RECORD_TYPE = 480;
/**
* The Accounting-Record-Number AVP code
*/
public static final int ACC_RECORD_NUMBER = 485;
/**
* The Accounting-Session-Id AVP code
*/
public static final int ACC_SESSION_ID = 44;
/**
* The Accounting-Sub-Session-Id AVP code
*/
public static final int ACC_SUB_SESSION_ID = 287;
/**
* The Accounting-Multi-Session-Id AVP code
*/
public static final int ACC_MULTI_SESSION_ID = 50;
/**
* The Disconnect cause AVP code
*/
public static final int DISCONNECT_CAUSE = 273;
/**
* The Error-Message AVP code
*/
public static final int ERROR_MESSAGE = 281;
// RFC 4006 (Credit-Control-Application) AVPs
/**
* CCA (RFC4006) Correlation ID AVP code
*/
public static final int CC_CORRELATION_ID = 411;
/**
* CCA (RFC4006) Credit Control Input Octets AVP code
*/
public static final int CC_INPUT_OCTETS = 412;
/**
* CCA (RFC4006) Credit Control Money AVP code
*/
public static final int CC_MONEY = 413;
/**
* CCA (RFC4006) Credit Control Output Octets AVP code
*/
public static final int CC_OUTPUT_OCTETS = 414;
/**
* CCA (RFC4006) Credit Control Request Number AVP code
*/
public static final int CC_REQUEST_NUMBER = 415;
/**
* CCA (RFC4006) Request Type AVP code
*/
public static final int CC_REQUEST_TYPE = 416;
/**
* CCA (RFC4006) Credit Control Service Specific Units AVP code
*/
public static final int CC_SERVICE_SPECIFIC_UNITS = 417;
/**
* CCA (RFC4006) Credit Control Session Failover AVP code
*/
public static final int CC_SESSION_FAILOVER = 418;
/**
* CCA (RFC4006) Credit Control Sub Session ID AVP code
*/
public static final int CC_SUB_SESSION_ID = 419;
/**
* CCA (RFC4006) Credit Control Time AVP code
*/
public static final int CC_TIME = 420;
/**
* CCA (RFC4006) Credit Control Total Octets AVP code
*/
public static final int CC_TOTAL_OCTETS = 421;
/**
* CCA (RFC4006) Credit Control Unit Type AVP code
*/
public static final int CC_UNIT_TYPE = 454;
/**
* CCA (RFC4006) Check Balance result AVP code
*/
public static final int CHECK_BALANCE_RESULT = 422;
/**
* CCA (RFC4006) Cost Information AVP code
*/
public static final int COST_INFORMATION = 423;
/**
* CCA (RFC4006) Cost Unit AVP code
*/
public static final int COST_UNIT = 424;
/**
* CCA (RFC4006) Currency Code AVP code
*/
public static final int CURRENCY_CODE = 425;
/**
* CCA (RFC4006) Credit Control AVP code
*/
public static final int CREDIT_CONTROL = 426;
/**
* CCA (RFC4006) Credit Control Failure Handling AVP code
*/
public static final int CREDIT_CONTROL_FAILURE_HANDLING = 427;
/**
* CCA (RFC4006) Direct Debiting Failure Handling AVP code
*/
public static final int DIRECT_DEBITING_FAILURE_HANDLING = 428;
/**
* CCA (RFC4006) Exponent AVP code
*/
public static final int EXPONENT = 429;
/**
* CCA (RFC4006) Final Unit Action AVP code
*/
public static final int FINAL_UNIT_ACTION = 449;
/**
* CCA (RFC4006) Final Unit Indication AVP code
*/
public static final int FINAL_UNIT_INDICATION = 430;
/**
* CCA (RFC4006) Granted Service Unit AVP code
*/
public static final int GRANTED_SERVICE_UNIT = 431;
/**
* CCA (RFC4006) GSU Pool Identifier AVP code
*/
public static final int GSU_POOL_ID = 453;
/**
* CCA (RFC4006) GSU Pool Reference AVP code
*/
public static final int GSU_POOL_REFERENCE = 457;
/**
* CCA (RFC4006) Multiple Services Credit Control AVP code
*/
public static final int MULTIPLE_SERVICES_CREDIT_CONTROL = 456;
/**
* CCA (RFC4006) Multiple Services Indicator AVP code
*/
public static final int MULTIPLE_SERVICES_INDICATOR = 455;
/**
* CCA (RFC4006) Rating Group AVP code
*/
public static final int RATING_GROUP = 432;
/**
* CCA (RFC4006) Redirect Address Type AVP code
*/
public static final int REDIRECT_ADDRESS_TYPE = 433;
/**
* CCA (RFC4006) Redirect Server AVP code
*/
public static final int REDIRECT_SERVER = 434;
/**
* CCA (RFC4006) Redirect Address AVP code
*/
public static final int REDIRECT_ADDRESS = 435;
/**
* CCA (RFC4006) Requested Action AVP code
*/
public static final int REQUESTED_ACTION = 436;
/**
* CCA (RFC4006) Requested Service Unit AVP code
*/
public static final int REQUESTED_SERVICE_UNIT = 437;
/**
* CCA (RFC4006) Restriction Filter Rule AVP code
*/
public static final int RESTRICTION_FILTER_RULE = 438;
/**
* CCA (RFC4006) Service Context Id AVP code
*/
public static final int SERVICE_CONTEXT_ID = 461;
/**
* CCA (RFC4006) Service Id AVP code
*/
public static final int SERVICE_IDENTIFIER_CCA = 439;
/**
* CCA (RFC4006) Service Parameter Info AVP code
*/
public static final int SERVICE_PARAMETER_INFO = 440;
/**
* CCA (RFC4006) Service Parameter Type AVP code
*/
public static final int SERVICE_PARAMETER_TYPE = 441;
/**
* CCA (RFC4006) Service Parameter Value AVP code
*/
public static final int SERVICE_PARAMETER_VALUE = 442;
/**
* CCA (RFC4006) Subscription Id AVP code
*/
public static final int SUBSCRIPTION_ID = 443;
/**
* CCA (RFC4006) Subscription Id Data AVP code
*/
public static final int SUBSCRIPTION_ID_DATA = 444;
/**
* CCA (RFC4006) Subscription Id Type AVP code
*/
public static final int SUBSCRIPTION_ID_TYPE = 450;
/**
* CCA (RFC4006) Tariff Change Usage AVP code
*/
public static final int TARIFF_CHANGE_USAGE = 452;
/**
* CCA (RFC4006) Tariff Time Change AVP code
*/
public static final int TARIFF_TIME_CHANGE = 451;
/**
* CCA (RFC4006) Unit Value AVP code
*/
public static final int UNIT_VALUE = 445;
/**
* CCA (RFC4006) Used Service Unit AVP code
*/
public static final int USED_SERVICE_UNIT = 446;
/**
* CCA (RFC4006) User Equipment Info AVP code
*/
public static final int USER_EQUIPMENT_INFO = 458;
/**
* CCA (RFC4006) User Equipment Info Type AVP code
*/
public static final int USER_EQUIPMENT_INFO_TYPE = 459;
/**
* CCA (RFC4006) User Equipment Info Value AVP code
*/
public static final int USER_EQUIPMENT_INFO_VALUE = 460;
/**
* CCA (RFC4006) Value Digits AVP code
*/
public static final int VALUE_DIGITS = 447;
/**
* CCA (RFC4006) Validity Time AVP code
*/
public static final int VALIDITY_TIME = 448;
// Cx/Dx IMS Interface AVPs
/**
* Cx/Dx (3GPP TS 29.229) Visited Network Identifier AVP code
*/
public static final int VISITED_NETWORK_ID = 600;
/**
* Cx/Dx (3GPP TS 29.229) Public Identity AVP code
*/
public static final int PUBLIC_IDENTITY = 601;
/**
* Cx/Dx (3GPP TS 29.229) Server Name AVP code
*/
public static final int SERVER_NAME = 602;
/**
* Cx/Dx (3GPP TS 29.229) Server Capabilities AVP code
*/
public static final int SERVER_CAPABILITIES = 603;
/**
* Cx/Dx (3GPP TS 29.229) Mandatory Capability AVP code
*/
public static final int MANDATORY_CAPABILITY = 604;
/**
* Cx/Dx (3GPP TS 29.229) Optional Capability AVP code
*/
public static final int OPTIONAL_CAPABILITY = 605;
/**
* Cx/Dx (3GPP TS 29.229) UserData AVP code
*/
public static final int USER_DATA_CXDX = 606; // why the hell there is double def, is 3GPP sane?
/**
* Cx/Dx (3GPP TS 29.229) SIP Number Auth Items AVP code
*/
public static final int SIP_NUMBER_AUTH_ITEMS = 607;
/**
* Cx/Dx (3GPP TS 29.229) SIP Authentication Scheme AVP code
*/
public static final int SIP_AUTHENTICATION_SCHEME = 608;
/**
* Cx/Dx (3GPP TS 29.229) SIP Authenticate AVP code
*/
public static final int SIP_AUTHENTICATE = 609;
/**
* Cx/Dx (3GPP TS 29.229) SIP Authorization AVP code
*/
public static final int SIP_AUTHORIZATION = 610;
/**
* Cx/Dx (3GPP TS 29.229) SIP Authentication Context AVP code
*/
public static final int SIP_AUTHENTICATION_CONTEXT = 611;
/**
* Cx/Dx (3GPP TS 29.229) SIP Auth Data Item AVP code
*/
public static final int SIP_AUTH_DATA_ITEM = 612;
/**
* Cx/Dx (3GPP TS 29.229) SIP Item Number AVP code
*/
public static final int SIP_ITEM_NUMBER = 613;
/**
* Cx/Dx (3GPP TS 29.229) Server Assignment Type AVP code
*/
public static final int SERVER_ASSIGNMENT_TYPE = 614;
/**
* Cx/Dx (3GPP TS 29.229) Deregistration Reason AVP code
*/
public static final int DEREGISTRATION_REASON = 615;
/**
* Cx/Dx (3GPP TS 29.229) Reason Code AVP code
*/
public static final int REASON_CODE = 616;
/**
* Cx/Dx (3GPP TS 29.229) Reason Info AVP code
*/
public static final int REASON_INFO = 617;
/**
* Cx/Dx (3GPP TS 29.229) Charging Information AVP code
*/
public static final int CHARGING_INFORMATION = 618;
/**
* Cx/Dx (3GPP TS 29.229) Primary Event Charging Function Name AVP code
*/
public static final int PRI_EVENT_CHARGING_FUNCTION = 619;
/**
* Cx/Dx (3GPP TS 29.229) Secondary Event Charging Function Name AVP code
*/
public static final int SEC_EVENT_CHARGING_FUNCTION = 620;
/**
* Cx/Dx (3GPP TS 29.229) Primary Charging Collection Function Name AVP code
*/
public static final int PRI_CHARGING_COLLECTION_FUNCTION = 621;
/**
* Cx/Dx (3GPP TS 29.229) Secondary Charging Collection Function Name AVP code
*/
public static final int SEC_CHARGING_COLLECTION_FUNCTION = 622;
/**
* Cx/Dx (3GPP TS 29.229) User Authorization Type AVP code
*/
public static final int USER_AUTORIZATION_TYPE = 623;
/**
* Cx/Dx (3GPP TS 29.229) User Data Already Available AVP code
*/
public static final int USER_DATA_ALREADY_AVAILABLE = 624;
/**
* Cx/Dx (3GPP TS 29.229) Confidentiality Key AVP code
*/
public static final int CONFIDENTIALITY_KEY = 625;
/**
* Cx/Dx (3GPP TS 29.229) Integrity Key AVP code
*/
public static final int INTEGRITY_KEY = 626;
/**
* Supported Features AVP code
*/
public static final int SUPPORTED_FEATURES = 628;
/**
* Cx/Dx (3GPP TS 29.229) Feature List ID AVP code
*/
public static final int FEATURE_LIST_ID = 629;
/**
* Cx/Dx (3GPP TS 29.229) Feature List AVP code
*/
public static final int FEATURE_LIST = 630;
/**
* Cx/Dx (3GPP TS 29.229) Supported Applications AVP code
*/
public static final int SUPPORTED_APPLICATIONS = 631;
/**
* Cx/Dx (3GPP TS 29.229) Associated Identities AVP code
*/
public static final int ASSOCAITED_IDENTITIES = 632;
/**
* Cx/Dx (3GPP TS 29.229) originating Request AVP code
*/
public static final int ORIGINATING_REQUEST = 633;
/**
* Wildcarded PSI AVP code
*/
public static final int WILDCARDED_PSI = 634;
/**
* Cx/Dx (3GPP TS 29.229) SIP Digest Authenticate AVP code
*/
public static final int SIP_DIGEST_AUTHENTICATE = 635;
/**
* Wildcarded IMPU AVP code
*/
public static final int WILDCARDED_IMPU = 636;
/**
* Cx/Dx (3GPP TS 29.229) UAR Flags AVP code
*/
public static final int UAR_FLAGS = 637;
/**
* Cx/Dx (3GPP TS 29.229) Loose Route Indication AVP code
*/
public static final int LOOSE_ROUTE_INDICATION = 638;
/**
* Cx/Dx (3GPP TS 29.229) SCSCF Restoration Info AVP code
*/
public static final int SCSCF_RESTORATION_INFO = 639;
/**
* Cx/Dx (3GPP TS 29.229) Path AVP code
*/
public static final int PATH = 640;
/**
* Cx/Dx (3GPP TS 29.229) Contact AVP code
*/
public static final int CONTACT = 641;
/**
* Cx/Dx (3GPP TS 29.229) Subscription Info AVP code
*/
public static final int SUBSCRIPTION_INFO = 642;
/**
* Cx/Dx (3GPP TS 29.229) Call ID SIP Header AVP code
*/
public static final int CALL_ID_SIP_HEADER = 643;
/**
* Cx/Dx (3GPP TS 29.229) From SIP Header AVP code
*/
public static final int FROM_SIP_HEADER = 644;
/**
* Cx/Dx (3GPP TS 29.229) To SIP Header AVP code
*/
public static final int TO_SIP_HEADER = 645;
/**
* Cx/Dx (3GPP TS 29.229) Record Route AVP code
*/
public static final int RECORD_ROUTE = 646;
/**
* Cx/Dx (3GPP TS 29.229) Associated Registered Identities AVP code
*/
public static final int ASSOCIATED_REGISTERED_IDENTITIES = 647;
/**
* Cx/Dx (3GPP TS 29.229) Multiple Registration Indication AVP code
*/
public static final int MULTIPLE_REGISTRATION_INDICATION = 648;
/**
* Cx/Dx (3GPP TS 29.229) Restoration Info AVP code
*/
public static final int RESTORATION_INFO = 649;
// Sh IMS Interface AVPs
/**
* Sh (3GPP TS 29.329) User Identity AVP code
*/
public static final int USER_IDENTITY = 700;
/**
* Sh (3GPP TS 29.329) User Data AVP code
*/
public static final int USER_DATA_SH = 702;
/**
* Sh (3GPP TS 29.329) Data Reference AVP code
*/
public static final int DATA_REFERENCE = 703;
/**
* Sh (3GPP TS 29.329) Service Indication AVP code
*/
public static final int SERVICE_INDICATION = 704;
/**
* Sh (3GPP TS 29.329) Subs Req Type AVP code
*/
public static final int SUBS_REQ_TYPE = 705;
/**
* Sh (3GPP TS 29.329) Requested Domain AVP code
*/
public static final int REQUESTED_DOMAIN = 706;
/**
* Sh (3GPP TS 29.329) Current Location AVP code
*/
public static final int CURRENT_LOCATION = 707;
/**
* Sh (3GPP TS 29.329) identity Set AVP code
*/
public static final int IDENTITY_SET = 708;
/**
* Sh (3GPP TS 29.329) Expiry Time AVP code
*/
public static final int EXPIRY_TIME = 709;
/**
* Sh (3GPP TS 29.329) Send Data Indication AVP code
*/
public static final int SEND_DATA_INDICATION = 710;
/**
* Sh (3GPP TS 29.329) DSAI Tag AVP code
*/
public static final int DSAI_TAG = 711;
// Ro/Rf IMS Interfaces AVPs
/**
* Ro/Rf (3GPP TS 32.299) Low Balance Indication AVP code
*/
public static final int LOW_BALANCE_INDICATION = 2020;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP Charging Characteristics AVP code
*/
public static final int TGPP_CHARGING_CHARACTERISTICS = 13;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP Charging Id AVP code
*/
public static final int TGPP_CHARGING_ID = 2;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP GGSN MCC MNC AVP code
*/
public static final int TGPP_GGSN_MCC_MNC = 9;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP IMSI AVP code
*/
public static final int TGPP_IMSI = 1;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP IMSI MCC MNC AVP code
*/
public static final int TGPP_IMSI_MCC_MNC = 8;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP MS TimeZone AVP code
*/
public static final int TGPP_MS_TIMEZONE = 23;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP NSAPI AVP code
*/
public static final int TGPP_NSAPI = 10;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP PDP Type AVP code
*/
public static final int TGPP_PDP_TYPE = 3;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP RAT Type AVP code
*/
public static final int TGPP_RAT_TYPE = 21;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP Selection Mode AVP code
*/
public static final int TGPP_SELECTION_MODE = 12;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP Session Stop Indicator AVP code
*/
public static final int TGPP_SESSION_STOP_INDICATOR = 11;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP SGSN MCC MNC AVP code
*/
public static final int GPP_SGSN_MCC_MNC = 18;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP User Location Info AVP code
*/
public static final int GPP_USER_LOCATION_INFO = 22;
/**
* Ro/Rf (3GPP TS 32.299) 3GPP2 BSID AVP code
*/
public static final int TGPP2_BSID = 5535;
/**
* Ro/Rf (3GPP TS 32.299) Access Network Charging Identifier Value AVP code
*/
public static final int ACCESS_NETWORK_CHARGING_IDENTIFIER_VALUE = 503;
/**
* Ro/Rf (3GPP TS 32.299) Access Network Information AVP code
*/
public static final int ACCESS_NETWORK_INFORMATION = 1263;
/**
* Ro/Rf (3GPP TS 32.299) Accumulated Cost AVP code
*/
public static final int ACCUMULATED_COST = 2052;
/**
* Ro/Rf (3GPP TS 32.299) Adaptations AVP code
*/
public static final int ADAPTATIONS = 1217;
/**
* Ro/Rf (3GPP TS 32.299) Additional Content Information AVP code
*/
public static final int ADDITIONAL_CONTENT_INFORMATION = 1207;
/**
* Ro/Rf (3GPP TS 32.299) Additional Type Information AVP code
*/
public static final int ADDITIONAL_TYPE_INFORMATION = 1205;
/**
* Ro/Rf (3GPP TS 32.299) Address Data AVP code
*/
public static final int ADDRESS_DATA = 897;
/**
* Ro/Rf (3GPP TS 32.299) Address Domain AVP code
*/
public static final int ADDRESS_DOMAIN = 898;
/**
* Ro/Rf (3GPP TS 32.299) Addressee Type AVP code
*/
public static final int ADDRESSEE_TYPE = 1208;
/**
* Ro/Rf (3GPP TS 32.299) Address Type AVP code
*/
public static final int ADDRESS_TYPE = 899;
/**
* Ro/Rf (3GPP TS 32.299) AF Charging Identifier AVP code
*/
public static final int AF_CHARGING_IDENTIFIER = 505;
/**
* Ro/Rf (3GPP TS 32.299) AF Correlation Information AVP code
*/
public static final int AF_CORRELATION_INFORMATION = 1276;
/**
* Ro/Rf (3GPP TS 32.299) Allocation Retention Priority AVP code
*/
public static final int ALLOCATION_RETENTION_PRIORITY = 1034;
/**
* Ro/Rf (3GPP TS 32.299) Alternate Charged Party Address AVP code
*/
public static final int ALTERNATE_CHARGED_PARTY_ADDRESS = 1280;
/**
* Gx/Gxx (3GPP TS 29.212) APN aggregate max bitrate DL AVP code
*/
public static final int APN_AGGREGATE_MAX_BITRATE_DL = 1040;
/**
* Gx/Gxx (3GPP TS 29.212) APN aggregate max bitrate UL AVP code
*/
public static final int APN_AGGREGATE_MAX_BITRATE_UL = 1041;
/**
* Ro/Rf (3GPP TS 32.299) AoC Cost Information AVP code
*/
public static final int AOC_COST_INFORMATION = 2053;
/**
* Ro/Rf (3GPP TS 32.299) AoC Information AVP code
*/
public static final int AOC_INFORMATION = 2054;
/**
* Ro/Rf (3GPP TS 32.299) AoC Request Type AVP code
*/
public static final int AOC_REQUEST_TYPE = 2055;
/**
* Ro/Rf (3GPP TS 32.299) Application provided called party address AVP code
*/
public static final int APPLICATION_PROVIDED_CALLED_PARTY_ADDRESS = 837;
/**
* Ro/Rf (3GPP TS 32.299) Application Server AVP code
*/
public static final int APPLICATION_SERVER = 836;
/**
* Ro/Rf (3GPP TS 32.299) Application Server ID AVP code
*/
public static final int APPLICATION_SERVER_ID = 2101;
/**
* Ro/Rf (3GPP TS 32.299) Application Server Information AVP code
*/
public static final int APPLICATION_SERVER_INFORMATION = 850;
/**
* Ro/Rf (3GPP TS 32.299) Application Service Type AVP code
*/
public static final int APPLICATION_SERVICE_TYPE = 2102;
/**
* Ro/Rf (3GPP TS 32.299) Application Session ID AVP code
*/
public static final int APPLICATION_SESSION_ID = 2103;
/**
* Ro/Rf (3GPP TS 32.299) Applic ID AVP code
*/
public static final int APPLIC_ID = 1218;
/**
* Ro/Rf (3GPP TS 32.299) Associated Party Address AVP code
*/
public static final int ASSOCIATED_PARTY_ADDRESS = 2035;
/**
* Ro/Rf (3GPP TS 32.299) Associated URI AVP code
*/
public static final int ASSOCIATED_URI = 856;
/**
* Ro/Rf (3GPP TS 32.299) Authorized QoS AVP code
*/
public static final int AUTHORIZED_QOS = 849;
/**
* Ro/Rf (3GPP TS 32.299) Aux Applic Info AVP code
*/
public static final int AUX_APPLIC_INFO = 1219;
/**
* Ro/Rf (3GPP TS 32.299) Base Time Interval AVP code
*/
public static final int BASE_TIME_INTERVAL = 1265;
/**
* Gx/Gxx (3GPP TS 29.212) Bearer Identifier AVP code
*/
public static final int BEARER_IDENTIFIER = 1020;
/**
* Ro/Rf (3GPP TS 32.299) Bearer Service AVP code
*/
public static final int BEARER_SERVICE = 854;
/**
* Ro/Rf (3GPP TS 32.299) Called Asserted Identity AVP code
*/
public static final int CALLED_ASSERTED_IDENTITY = 1250;
/**
* Ro/Rf (3GPP TS 32.299) Called Party Address AVP code
*/
public static final int CALLED_PARTY_ADDRESS = 832;
/**
* Ro/Rf (3GPP TS 32.299) Calling Party Address AVP code
*/
public static final int CALLING_PARTY_ADDRESS = 831;
/**
* Ro/Rf (3GPP TS 32.299) Carrier Select Routing Information AVP code
*/
public static final int CARRIER_SELECT_ROUTING_INFORMATION = 2023;
/**
* Ro/Rf (3GPP TS 32.299) Cause Code AVP code
*/
public static final int CAUSE_CODE = 861;
/**
* Ro/Rf (3GPP TS 32.299) CG Address AVP code
*/
public static final int CG_ADDRESS = 846;
/**
* Ro/Rf (3GPP TS 32.299) Change Condition AVP code
*/
public static final int CHANGE_CONDITION = 2037;
/**
* Ro/Rf (3GPP TS 32.299) Change Time AVP code
*/
public static final int CHANGE_TIME = 2038;
/**
* Ro/Rf (3GPP TS 32.299) Charged Party AVP code
*/
public static final int CHARGED_PARTY = 857;
/**
* Ro/Rf (3GPP TS 32.299) Charging Rule Base Name AVP code
*/
public static final int CHARGING_RULE_BASE_NAME = 1004;
/**
* Ro/Rf (3GPP TS 32.299) Class Identifier AVP code
*/
public static final int CLASS_IDENTIFIER = 1214;
/**
* Ro/Rf (3GPP TS 32.299) Client Address AVP code
*/
public static final int CLIENT_ADDRESS = 2018;
/**
* Ro/Rf (3GPP TS 32.299) Content Class AVP code
*/
public static final int CONTENT_CLASS = 1220;
/**
* Ro/Rf (3GPP TS 32.299) Content Disposition AVP code
*/
public static final int CONTENT_DISPOSITION = 828;
/**
* Ro/Rf (3GPP TS 32.299) Content ID AVP code
*/
public static final int CONTENT_ID = 2116;
/**
* Ro/Rf (3GPP TS 32.299) Content Provider ID AVP code
*/
public static final int CONTENT_PROVIDER_ID = 2117;
/**
* Ro/Rf (3GPP TS 32.299) Content Length AVP code
*/
public static final int CONTENT_LENGTH = 827;
/**
* Ro/Rf (3GPP TS 32.299) Content Size AVP code
*/
public static final int CONTENT_SIZE = 1206;
/**
* Ro/Rf (3GPP TS 32.299) Content Type AVP code
*/
public static final int CONTENT_TYPE = 826;
/**
* Ro/Rf (3GPP TS 32.299) Current Tariff AVP code
*/
public static final int CURRENT_TARIFF = 2056;
/**
* Ro/Rf (3GPP TS 32.299) Data Coding Scheme AVP code
*/
public static final int DATA_CODING_SCHEME = 2001;
/**
* Ro/Rf (3GPP TS 32.299) DCD Information AVP code
*/
public static final int DCD_INFORMATION = 2115;
/**
* Ro/Rf (3GPP TS 32.299) Deferred Location Event Type AVP code
*/
public static final int DEFERRED_LOCATION_EVENT_TYPE = 1230;
/**
* Ro/Rf (3GPP TS 32.299) Delivery Report Requested AVP code
*/
public static final int DELIVERY_REPORT_REQUESTED = 1216;
/**
* Ro/Rf (3GPP TS 32.299) Delivery Status AVP code
*/
public static final int DELIVERY_STATUS = 2104;
/**
* Ro/Rf (3GPP TS 32.299) Destination Interface AVP code
*/
public static final int DESTINATION_INTERFACE = 2002;
/**
* Ro/Rf (3GPP TS 32.299) Diagnostics AVP code
*/
public static final int DIAGNOSTICS = 2039;
/**
* Ro/Rf (3GPP TS 32.299) Domain Name AVP code
*/
public static final int DOMAIN_NAME = 1200;
/**
* Ro/Rf (3GPP TS 32.299) DRM Content AVP code
*/
public static final int DRM_CONTENT = 1221;
/**
* Ro/Rf (3GPP TS 32.299) Dynamic Address Flag AVP code
*/
public static final int DYNAMIC_ADDRESS_FLAG = 2051;
/**
* Ro/Rf (3GPP TS 32.299) Early Media Description AVP code
*/
public static final int EARLY_MEDIA_DESCRIPTION = 1272;
/**
* Ro/Rf (3GPP TS 32.299) Envelope AVP code
*/
public static final int ENVELOPE = 1266;
/**
* Ro/Rf (3GPP TS 32.299) Envelope End Time AVP code
*/
public static final int ENVELOPE_END_TIME = 1267;
/**
* Ro/Rf (3GPP TS 32.299) Envelope Reporting AVP code
*/
public static final int ENVELOPE_REPORTING = 1268;
/**
* Ro/Rf (3GPP TS 32.299) Envelope Start Time AVP code
*/
public static final int ENVELOPE_START_TIME = 1269;
/**
* Ro/Rf (3GPP TS 32.299) Event AVP code
*/
public static final int EVENT = 825;
/**
* Ro/Rf (3GPP TS 32.299) Event Charging TimeStamp AVP code
*/
public static final int EVENT_CHARGING_TIMESTAMP = 1258;
/**
* Ro/Rf (3GPP TS 32.299) Event Type AVP code
*/
public static final int EVENT_TYPE = 823;
/**
* Ro/Rf (3GPP TS 32.299) Expires AVP code
*/
public static final int EXPIRES = 888;
/**
* Ro/Rf (3GPP TS 32.299) File Repair Supported AVP code
*/
public static final int FILE_REPAIR_SUPPORTED = 1224;
/**
* Ro/Rf (3GPP TS 32.299) Flows AVP code
*/
public static final int FLOWS = 510;
/**
* Ro/Rf (3GPP TS 32.299) GGSN Address AVP code
*/
public static final int GGSN_ADDRESS = 847;
/**
* Ro/Rf (3GPP TS 32.299) Guaranteed Bitrate UL AVP code
*/
public static final int GUARANTEED_BITRATE_UL = 1026;
/**
* Ro/Rf (3GPP TS 32.299) Guaranteed Bitrate UL AVP code
*/
public static final int GUARANTEED_BITRATE_DL = 1025;
/**
* Ro/Rf (3GPP TS 32.299) IM Information AVP code
*/
public static final int IM_INFORMATION = 2110;
/**
* Ro/Rf (3GPP TS 32.299) IMS Charging Identifier AVP code
*/
public static final int IMS_CHARGING_IDENTIFIER = 841;
/**
* Ro/Rf (3GPP TS 32.299) IMS Communication Service Identifier AVP code
*/
public static final int IMS_COMMUNICATION_SERVICE_IDENTIFIER = 1281;
/**
* Ro/Rf (3GPP TS 32.299) IMS Information AVP code
*/
public static final int IMS_INFORMATION = 876;
/**
* Ro/Rf (3GPP TS 32.299) Incoming Trunk Group Id AVP code
*/
public static final int INCOMING_TRUNK_GROUP_ID = 852;
/**
* Ro/Rf (3GPP TS 32.299) Incremental Cost AVP code
*/
public static final int INCREMENTAL_COST = 2062;
/**
* Ro/Rf (3GPP TS 32.299) Interface Id AVP code
*/
public static final int INTERFACE_ID = 2003;
/**
* Ro/Rf (3GPP TS 32.299) Interface Port AVP code
*/
public static final int INTERFACE_PORT = 2004;
/**
* Ro/Rf (3GPP TS 32.299) Interface Text AVP code
*/
public static final int INTERFACE_TEXT = 2005;
/**
* Ro/Rf (3GPP TS 32.299) Interface Type AVP code
*/
public static final int INTERFACE_TYPE = 2006;
/**
* Ro/Rf (3GPP TS 32.299) Inter Operator Identifier AVP code
*/
public static final int INTER_OPERATOR_IDENTIFIER = 838;
/**
* Ro/Rf (3GPP TS 32.299) LCS Client Dialed By MS AVP code
*/
public static final int LCS_CLIENT_DIALED_BY_MS = 1233;
/**
* Ro/Rf (3GPP TS 32.299) LCS Client External ID AVP code
*/
public static final int LCS_CLIENT_EXTERNAL_ID = 1234;
/**
* Ro/Rf (3GPP TS 32.299) LCS Client Id AVP code
*/
public static final int LCS_CLIENT_ID = 1232;
/**
* Ro/Rf (3GPP TS 32.299) LCS Client Type AVP code
*/
public static final int LCS_CLIENT_TYPE = 1241;
/**
* Ro/Rf (3GPP TS 32.299) LCS Data Coding Scheme AVP code
*/
public static final int LCS_DATA_CODING_SCHEME = 1236;
/**
* Ro/Rf (3GPP TS 32.299) LCS Format Indicator AVP code
*/
public static final int LCS_FORMAT_INDICATOR = 1237;
/**
* Ro/Rf (3GPP TS 32.299) LCS Information AVP code
*/
public static final int LCS_INFORMATION = 878;
/**
* Ro/Rf (3GPP TS 32.299) LCS Name String AVP code
*/
public static final int LCS_NAME_STRING = 1238;
/**
* Ro/Rf (3GPP TS 32.299) LCS Requestor Id AVP code
*/
public static final int LCS_REQUESTOR_ID = 1239;
/**
* Ro/Rf (3GPP TS 32.299) LCS Requestor Id String AVP code
*/
public static final int LCS_REQUESTOR_ID_STRING = 1240;
/**
* Ro/Rf (3GPP TS 32.299) Local Sequence Number AVP code
*/
public static final int LOCAL_SEQUENCE_NUMBER = 2063;
/**
* Ro/Rf (3GPP TS 32.299) Location Estimate AVP code
*/
public static final int LOCATION_ESTIMATE = 1242;
/**
* Ro/Rf (3GPP TS 32.299) Location Estimate Type AVP code
*/
public static final int LOCATION_ESTIMATE_TYPE = 1243;
/**
* Ro/Rf (3GPP TS 32.299) Location Type AVP code
*/
public static final int LOCATION_TYPE = 1244;
/**
* Ro/Rf (3GPP TS 32.299) Max Requested Bandwidth DL AVP code
*/
public static final int MAX_REQUESTED_BANDWIDTH_DL = 515;
/**
* Ro/Rf (3GPP TS 32.299) Max Requested Bandwidth UL AVP code
*/
public static final int MAX_REQUESTED_BANDWIDTH_UL = 516;
/**
* Ro/Rf (3GPP TS 32.299) MBMS 2G 3G Indicator AVP code
*/
public static final int MBMS_2G_3G_INDICATOR = 907;
/**
* Ro/Rf (3GPP TS 32.299) MBMS Information AVP code
*/
public static final int MBMS_INFORMATION = 880;
/**
* Ro/Rf (3GPP TS 32.299) MBMS Service Area AVP code
*/
public static final int MBMS_SERVICE_AREA = 903;
/**
* Ro/Rf (3GPP TS 32.299) MBMS Service Type AVP code
*/
public static final int MBMS_SERVICE_TYPE = 906;
/**
* Ro/Rf (3GPP TS 32.299) MBMS Session Identity AVP code
*/
public static final int MBMS_SESSION_IDENTITY = 908;
/**
* Ro/Rf (3GPP TS 32.299) MBMS User Service Type AVP code
*/
public static final int MBMS_USER_SERVICE_TYPE = 1225;
/**
* Ro/Rf (3GPP TS 32.299) Media Initiator Flag AVP code
*/
public static final int MEDIA_INITIATOR_FLAG = 882;
/**
* Ro/Rf (3GPP TS 32.299) Media Initiator Party AVP code
*/
public static final int MEDIA_INITIATOR_PARTY = 1288;
/**
* Ro/Rf (3GPP TS 32.299) Message Body AVP code
*/
public static final int MESSAGE_BODY = 889;
/**
* Ro/Rf (3GPP TS 32.299) Message Class AVP code
*/
public static final int MESSAGE_CLASS = 1213;
/**
* Ro/Rf (3GPP TS 32.299) Message ID AVP code
*/
public static final int MESSAGE_ID = 1210;
/**
* Ro/Rf (3GPP TS 32.299) Message Size AVP code
*/
public static final int MESSAGE_SIZE = 1212;
/**
* Ro/Rf (3GPP TS 32.299) Message Type AVP code
*/
public static final int MESSAGE_TYPE = 1211;
/**
* Ro/Rf (3GPP TS 32.299) MMBox Storage Requested AVP code
*/
public static final int MMBOX_STORAGE_REQUESTED = 1248;
/**
* Ro/Rf (3GPP TS 32.299) MM Content Type AVP code
*/
public static final int MM_CONTENT_TYPE = 1203;
/**
* Ro/Rf (3GPP TS 32.299) MMS Information AVP code
*/
public static final int MMS_INFORMATION = 877;
/**
* Ro/Rf (3GPP TS 32.299) MMTel Information AVP code
*/
public static final int MMTEL_INFORMATION = 2030;
/**
* Ro/Rf (3GPP TS 32.299) MSISDN AVP code
*/
public static final int MSISDN = 701;
/**
* Ro/Rf (3GPP TS 32.299) Next Tariff AVP code
*/
public static final int NEXT_TARIFF = 2057;
/**
* Ro/Rf (3GPP TS 32.299) Node Functionality AVP code
*/
public static final int NODE_FUNCTIONALITY = 862;
/**
* Ro/Rf (3GPP TS 32.299) Node Id AVP code
*/
public static final int NODE_ID = 2064;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Diversions AVP code
*/
public static final int NUMBER_OF_DIVERSIONS = 2034;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Messages Sent AVP code
*/
public static final int NUMBER_OF_MESSAGES_SENT = 2019;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Messages Successfully Exploded AVP code
*/
public static final int NUMBER_OF_MESSAGES_SUCCESSFULLY_EXPLODED = 2111;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Messages Successfully Sent AVP code
*/
public static final int NUMBER_OF_MESSAGES_SUCCESSFULLY_SENT = 2112;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Participants AVP code
*/
public static final int NUMBER_OF_PARTICIPANTS = 885;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Received Talk Bursts AVP code
*/
public static final int NUMBER_OF_RECEIVED_TALK_BURSTS = 1282;
/**
* Ro/Rf (3GPP TS 32.299) Number Of Talk Bursts AVP code
*/
public static final int NUMBER_OF_TALK_BURSTS = 1283;
/**
* Ro/Rf (3GPP TS 32.299) Number Portability Routing Information AVP code
*/
public static final int NUMBER_PORTABILITY_ROUTING_INFORMATION = 2024;
/**
* Ro/Rf (3GPP TS 32.299) Offline Charging AVP code
*/
public static final int OFFLINE_CHARGING = 1278;
/**
* Ro/Rf (3GPP TS 32.299) Online Charging Flag AVP code
*/
public static final int ONLINE_CHARGING_FLAG = 2303;
/**
* Ro/Rf (3GPP TS 32.299) Originating IOI AVP code
*/
public static final int ORIGINATING_IOI = 839;
/**
* Ro/Rf (3GPP TS 32.299) Originator SCCP Address AVP code
*/
public static final int ORIGINATOR_SCCP_ADDRESS = 2008;
/**
* Ro/Rf (3GPP TS 32.299) Originator AVP code
*/
public static final int ORIGINATOR = 864;
/**
* Ro/Rf (3GPP TS 32.299) Originator Address AVP code
*/
public static final int ORIGINATOR_ADDRESS = 886;
/**
* Ro/Rf (3GPP TS 32.299) Originator Received Address AVP code
*/
public static final int ORIGINATOR_RECEIVED_ADDRESS = 2027;
/**
* Ro/Rf (3GPP TS 32.299) Originator Interface AVP code
*/
public static final int ORIGINATOR_INTERFACE = 2009;
/**
* Ro/Rf (3GPP TS 32.299) Outgoing Trunk Group Id AVP code
*/
public static final int OUTGOING_TRUNK_GROUP_ID = 853;
/**
* Ro/Rf (3GPP TS 32.299) Participant Access Priority AVP code
*/
public static final int PARTICIPANT_ACCESS_PRIORITY = 1259;
/**
* Ro/Rf (3GPP TS 32.299) Participant Action Type AVP code
*/
public static final int PARTICIPANT_ACTION_TYPE = 2049;
/**
* Ro/Rf (3GPP TS 32.299) Participant Group AVP code
*/
public static final int PARTICIPANT_GROUP = 1260;
/**
* Ro/Rf (3GPP TS 32.299) Participants Involved AVP code
*/
public static final int PARTICIPANTS_INVOLVED = 887;
/**
* Ro/Rf (3GPP TS 32.299) PDG Address AVP code
*/
public static final int PDG_ADDRESS = 895;
/**
* Ro/Rf (3GPP TS 32.299) PDG Charging Id AVP code
*/
public static final int PDG_CHARGING_ID = 896;
/**
* Ro/Rf (3GPP TS 32.299) PDN Connection ID AVP code
*/
public static final int PDN_CONNECTION_ID = 2050;
/**
* Ro/Rf (3GPP TS 32.299) PDP Address AVP code
*/
public static final int PDP_ADDRESS = 1227;
/**
* Ro/Rf (3GPP TS 32.299) PDP Context Type AVP code
*/
public static final int PDP_CONTEXT_TYPE = 1247;
/**
* Ro/Rf (3GPP TS 32.299) PoC Change Condition AVP code
*/
public static final int POC_CHANGE_CONDITION = 1261;
/**
* Ro/Rf (3GPP TS 32.299) PoC Change Time AVP code
*/
public static final int POC_CHANGE_TIME = 1262;
/**
* Ro/Rf (3GPP TS 32.299) PoC Controlling Address AVP code
*/
public static final int POC_CONTROLLING_ADDRESS = 858;
/**
* Ro/Rf (3GPP TS 32.299) PoC Event Type AVP code
*/
public static final int POC_EVENT_TYPE = 2025;
/**
* Ro/Rf (3GPP TS 32.299) PoC Group Name AVP code
*/
public static final int POC_GROUP_NAME = 859;
/**
* Ro/Rf (3GPP TS 32.299) PoC Information AVP code
*/
public static final int POC_INFORMATION = 879;
/**
* Ro/Rf (3GPP TS 32.299) PoC Server Role AVP code
*/
public static final int POC_SERVER_ROLE = 883;
/**
* Ro/Rf (3GPP TS 32.299) PoC Session Id AVP code
*/
public static final int POC_SESSION_ID = 1229;
/**
* Ro/Rf (3GPP TS 32.299) PoC Session Initiation type AVP code
*/
public static final int POC_SESSION_INITIATION_TYPE = 1277;
/**
* Ro/Rf (3GPP TS 32.299) PoC Session Type AVP code
*/
public static final int POC_SESSION_TYPE = 884;
/**
* Ro/Rf (3GPP TS 32.299) PoC User Role AVP code
*/
public static final int POC_USER_ROLE = 1252;
/**
* Ro/Rf (3GPP TS 32.299) PoC User Role IDs AVP code
*/
public static final int POC_USER_ROLE_IDS = 1253;
/**
* Ro/Rf (3GPP TS 32.299) PoC User Role info Units AVP code
*/
public static final int POC_USER_ROLE_INFO_UNITS = 1254;
/**
* Ro/Rf (3GPP TS 32.299) Positioning Data AVP code
*/
public static final int POSITIONING_DATA = 1245;
/**
* Ro/Rf (3GPP TS 32.299) Priority AVP code
*/
public static final int PRIORITY = 1209;
/**
* Ro/Rf (3GPP TS 32.299) Priority Level AVP code
*/
public static final int PRIORITY_LEVEL = 1046;
/**
* Ro/Rf (3GPP TS 32.299) PS Append Free Format Data AVP code
*/
public static final int PS_APPEND_FREE_FORMAT_DATA = 867;
/**
* Ro/Rf (3GPP TS 32.299) PS Free Format Data AVP code
*/
public static final int PS_FREE_FORMAT_DATA = 866;
/**
* Ro/Rf (3GPP TS 32.299) PS Furnish Charging Information AVP code
*/
public static final int PS_FURNISH_CHARGING_INFORMATION = 865;
/**
* Ro/Rf (3GPP TS 32.299) PS Information AVP code
*/
public static final int PS_INFORMATION = 874;
/**
* Ro/Rf (3GPP TS 32.299) QoS Information AVP code
*/
public static final int QOS_INFORMATION = 1016;
/**
* Ro/Rf (3GPP TS 32.299) QoS Class Identifier AVP code
*/
public static final int QOS_CLASS_IDENTIFIER = 1028;
/**
* Ro/Rf (3GPP TS 32.299) Quota Consumption Time AVP code
*/
public static final int QUOTA_CONSUMPTION_TIME = 881;
/**
* Ro/Rf (3GPP TS 32.299) Quota Holding Time AVP code
*/
public static final int QUOTA_HOLDING_TIME = 871;
/**
* Ro/Rf (3GPP TS 32.299) RAI AVP code
*/
public static final int RAI = 909;
/**
* Ro/Rf (3GPP TS 32.299) Rate Element AVP code
*/
public static final int RATE_ELEMENT = 2058;
/**
* Ro/Rf (3GPP TS 32.299) Read Reply Report Requested AVP code
*/
public static final int READ_REPLY_REPORT_REQUESTED = 1222;
/**
* Ro/Rf (3GPP TS 32.299) Received Talk Burst Time AVP code
*/
public static final int RECEIVED_TALK_BURST_TIME = 1284;
/**
* Ro/Rf (3GPP TS 32.299) Received Talk Burst Volume AVP code
*/
public static final int RECEIVED_TALK_BURST_VOLUME = 1285;
/**
* Ro/Rf (3GPP TS 32.299) Recipient Address AVP code
*/
public static final int RECIPIENT_ADDRESS = 1201;
/**
* Ro/Rf (3GPP TS 32.299) Recipient Info AVP code
*/
public static final int RECIPIENT_INFO = 2026;
/**
* Ro/Rf (3GPP TS 32.299) Recipient Received Address AVP code
*/
public static final int RECIPIENT_RECEIVED_ADDRESS = 2028;
/**
* Ro/Rf (3GPP TS 32.299) Recipient SCCP Address AVP code
*/
public static final int RECIPIENT_SCCP_ADDRESS = 2010;
/**
* Ro/Rf (3GPP TS 32.299) Refund Information AVP code
*/
public static final int REFUND_INFORMATION = 2022;
/**
* Ro/Rf (3GPP TS 32.299) Remaining Balance AVP code
*/
public static final int REMAINING_BALANCE = 2021;
/**
* Ro/Rf (3GPP TS 32.299) Reply Applic ID AVP code
*/
public static final int REPLY_APPLIC_ID = 1223;
/**
* Ro/Rf (3GPP TS 32.299) Reply Path Requested AVP code
*/
public static final int REPLY_PATH_REQUESTED = 2011;
/**
* Ro/Rf (3GPP TS 32.299) Reporting Reason AVP code
*/
public static final int REPORTING_REASON = 872;
/**
* Ro/Rf (3GPP TS 32.299) Requested Party Address AVP code
*/
public static final int REQUESTED_PARTY_ADDRESS = 1251;
/**
* Ro/Rf (3GPP TS 32.299) Required MBMS Bearer Capabilities AVP code
*/
public static final int REQUIRED_MBMS_BEARER_CAPABILITIES = 901;
/**
* Ro/Rf (3GPP TS 32.299) Role of Node AVP code
*/
public static final int ROLE_OF_NODE = 829;
/**
* Ro/Rf (3GPP TS 32.299) Scale Factor AVP code
*/
public static final int SCALE_FACTOR = 2059;
/**
* Ro/Rf (3GPP TS 32.299) SDP Answer Timestamp AVP code
*/
public static final int SDP_ANSWER_TIMESTAMP = 1275;
/**
* Ro/Rf (3GPP TS 32.299) SDP Media Component AVP code
*/
public static final int SDP_MEDIA_COMPONENT = 843;
/**
* Ro/Rf (3GPP TS 32.299) SDP Media Description AVP code
*/
public static final int SDP_MEDIA_DESCRIPTION = 845;
/**
* Ro/Rf (3GPP TS 32.299) SDP Media Name AVP code
*/
public static final int SDP_MEDIA_NAME = 844;
/**
* Ro/Rf (3GPP TS 32.299) SDP Offer Timestamp AVP code
*/
public static final int SDP_OFFER_TIMESTAMP = 1274;
/**
* Ro/Rf (3GPP TS 32.299) SDP Session Description AVP code
*/
public static final int SDP_SESSION_DESCRIPTION = 842;
/**
* Ro/Rf (3GPP TS 32.299) SDP TimeStamps AVP code
*/
public static final int SDP_TIMESTAMPS = 1273;
/**
* Ro/Rf (3GPP TS 32.299) SDP Type AVP code
*/
public static final int SDP_TYPE = 2036;
/**
* Ro/Rf (3GPP TS 32.299) Served Party IP Address AVP code
*/
public static final int SERVED_PARTY_IP_ADDRESS = 848;
/**
* Ro/Rf (3GPP TS 32.299) Service Data Container AVP code
*/
public static final int SERVICE_DATA_CONTAINER = 2040;
/**
* Ro/Rf (3GPP TS 32.299) Service Generic Information AVP code
*/
public static final int SERVICE_GENERIC_INFORMATION = 1256;
/**
* Ro/Rf (3GPP TS 32.299) Service Id AVP code
*/
public static final int SERVICE_IDENTIFIER = 855;
/**
* Ro/Rf (3GPP TS 32.299) Service Information AVP code
*/
public static final int SERVICE_INFORMATION = 873;
/**
* Ro/Rf (3GPP TS 32.299) Service Mode AVP code
*/
public static final int SERVICE_MODE = 2032;
/**
* Ro/Rf (3GPP TS 32.299) Service Specific Data AVP code
*/
public static final int SERVICE_SPECIFIC_DATA = 863;
/**
* Ro/Rf (3GPP TS 32.299) Service Specific Info AVP code
*/
public static final int SERVICE_SPECIFIC_INFO = 1249;
/**
* Ro/Rf (3GPP TS 32.299) Service Specific Type AVP code
*/
public static final int SERVICE_SPECIFIC_TYPE = 1257;
/**
* Ro/Rf (3GPP TS 32.299) Serving Node Type AVP code
*/
public static final int SERVING_NODE_TYPE = 2047;
/**
* Ro/Rf (3GPP TS 32.299) Service Type AVP code
*/
public static final int SERVICE_TYPE = 2031;
/**
* Ro/Rf (3GPP TS 32.299) SGSN Address AVP code
*/
public static final int SGSN_ADDRESS = 1228;
/**
* Ro/Rf (3GPP TS 32.299) SGW Change AVP code
*/
public static final int SGW_CHANGE = 2064;
/**
* Ro/Rf (3GPP TS 32.299) SIP Method AVP code
*/
public static final int SIP_METHOD = 824;
/**
* Ro/Rf (3GPP TS 32.299) SIP Request Timestamp Fraction AVP code
*/
public static final int SIP_REQUEST_TIMESTAMP_FRACTION = 2301;
/**
* Ro/Rf (3GPP TS 32.299) SIP Request Timestamp AVP code
*/
public static final int SIP_REQUEST_TIMESTAMP = 834;
/**
* Ro/Rf (3GPP TS 32.299) SIP Response Timestamp Fraction AVP code
*/
public static final int SIP_RESPONSE_TIMESTAMP_FRACTION = 2302;
/**
* Ro/Rf (3GPP TS 32.299) SIP Response Timestamp AVP code
*/
public static final int SIP_RESPONSE_TIMESTAMP = 835;
/**
* Ro/Rf (3GPP TS 32.299) SM Discharge Time AVP code
*/
public static final int SM_DISCHARGE_TIME = 2012;
/**
* Ro/Rf (3GPP TS 32.299) SM Message Type AVP code
*/
public static final int SM_MESSAGE_TYPE = 2007;
/**
* Ro/Rf (3GPP TS 32.299) SM Protocol ID AVP code
*/
public static final int SM_PROTOCOL_ID = 2013;
/**
* Ro/Rf (3GPP TS 32.299) SMSC Address AVP code
*/
public static final int SMSC_ADDRESS = 2017;
/**
* Ro/Rf (3GPP TS 32.299) SMS Information AVP code
*/
public static final int SMS_INFORMATION = 2000;
/**
* Ro/Rf (3GPP TS 32.299) SMS Node AVP code
*/
public static final int SMS_NODE = 2016;
/**
* Ro/Rf (3GPP TS 32.299) SM Service Type AVP code
*/
public static final int SM_SERVICE_TYPE = 2029;
/**
* Ro/Rf (3GPP TS 32.299) SM Status AVP code
*/
public static final int SM_STATUS = 2014;
/**
* Ro/Rf (3GPP TS 32.299) SM User Data Header AVP code
*/
public static final int SM_USER_DATA_HEADER = 2015;
/**
* Ro/Rf (3GPP TS 32.299) Start Time AVP code
*/
public static final int START_TIME = 2041;
/**
* Ro/Rf (3GPP TS 32.299) Stop Time AVP code
*/
public static final int STOP_TIME = 2042;
/**
* Ro/Rf (3GPP TS 32.299) Submission Time AVP code
*/
public static final int SUBMISSION_TIME = 1202;
/**
* Ro/Rf (3GPP TS 32.299) Subscriber Role AVP code
*/
public static final int SUBSCRIBER_ROLE = 2033;
/**
* Ro/Rf (3GPP TS 32.299) Supplementary Service AVP code
*/
public static final int SUPPLEMENTARY_SERVICE = 2048;
/**
* Ro/Rf (3GPP TS 32.299) Talk Burst Exchange AVP code
*/
public static final int TALK_BURST_EXCHANGE = 1255;
/**
* Ro/Rf (3GPP TS 32.299) Talk Burst Time AVP code
*/
public static final int TALK_BURST_TIME = 1286;
/**
* Ro/Rf (3GPP TS 32.299) Talk Burst Volume AVP code
*/
public static final int TALK_BURST_VOLUME = 1287;
/**
* Ro/Rf (3GPP TS 32.299) Tariff Information AVP code
*/
public static final int TARIFF_INFORMATION = 2060;
/**
* Ro/Rf (3GPP TS 32.299) Terminal Information AVP code
*/
public static final int TERMINAL_INFORMATION = 1401;
/**
* Ro/Rf (3GPP TS 32.299) Terminating IOI AVP code
*/
public static final int TERMINATING_IOI = 840;
/**
* Ro/Rf (3GPP TS 32.299) Time First Usage AVP code
*/
public static final int TIME_FIRST_USAGE = 2043;
/**
* Ro/Rf (3GPP TS 32.299) Time Last Usage AVP code
*/
public static final int TIME_LAST_USAGE = 2044;
/**
* Ro/Rf (3GPP TS 32.299) Time Quota Mechanism AVP code
*/
public static final int TIME_QUOTA_MECHANISM = 1270;
/**
* Ro/Rf (3GPP TS 32.299) Time Quota Threshold AVP code
*/
public static final int TIME_QUOTA_THRESHOLD = 868;
/**
* Ro/Rf (3GPP TS 32.299) Time Quota Type AVP code
*/
public static final int TIME_QUOTA_TYPE = 1271;
/**
* Ro/Rf (3GPP TS 32.299) Time Stamps AVP code
*/
public static final int TIME_STAMPS = 833;
/**
* Ro/Rf (3GPP TS 32.299) Time Usage AVP code
*/
public static final int TIME_USAGE = 2045;
/**
* Ro/Rf (3GPP TS 32.299) TMGI AVP code
*/
public static final int TMGI = 900;
/**
* Ro/Rf (3GPP TS 32.299) Token Text AVP code
*/
public static final int TOKEN_TEXT = 1215;
/**
* Ro/Rf (3GPP TS 32.299) Total Number Of Messages Exploded AVP code
*/
public static final int TOTAL_NUMBER_OF_MESSAGES_EXPLODED = 2113;
/**
* Ro/Rf (3GPP TS 32.299) Total Number Of Messages Sent AVP code
*/
public static final int TOTAL_NUMBER_OF_MESSAGES_SENT = 2114;
/**
* Ro/Rf (3GPP TS 32.299) Traffic Data Volumes AVP code
*/
public static final int TRAFFIC_DATA_VOLUMES = 2046;
/**
* Ro/Rf (3GPP TS 32.299) Trigger AVP code
*/
public static final int TRIGGER = 1264;
/**
* Ro/Rf (3GPP TS 32.299) Trigger Type AVP code
*/
public static final int TRIGGER_TYPE = 870;
/**
* Ro/Rf (3GPP TS 32.299) Trunk Group Id AVP code
*/
public static final int TRUNK_GROUP_ID = 851;
/**
* Ro/Rf (3GPP TS 32.299) Type Number AVP code
*/
public static final int TYPE_NUMBER = 1204;
/**
* Ro/Rf (3GPP TS 32.299) Unit Cost AVP code
*/
public static final int UNIT_COST = 2061;
/**
* Ro/Rf (3GPP TS 32.299) Unit Quota Threshold AVP code
*/
public static final int UNIT_QUOTA_THRESHOLD = 1226;
/**
* Ro/Rf (3GPP TS 32.299) User Data AVP code
*/
public static final int USER_DATA_RORF = 606;
/**
* Ro/Rf (3GPP TS 32.299) User Participating Type AVP code
*/
public static final int USER_PARTICIPATING_TYPE = 1279;
/**
* Ro/Rf (3GPP TS 32.299) User Session Id AVP code
*/
public static final int USER_SESSION_ID = 830;
/**
* Ro/Rf (3GPP TS 32.299) VAS Id AVP code
*/
public static final int VAS_ID = 1102;
/**
* Ro/Rf (3GPP TS 32.299) VASP Id AVP code
*/
public static final int VASP_ID = 1101;
/**
* Ro/Rf (3GPP TS 32.299) Volume Quota Threshold AVP code
*/
public static final int VOLUME_QUOTA_THRESHOLD = 869;
/**
* Ro/Rf (3GPP TS 32.299) WAG Address AVP code
*/
public static final int WAG_ADDRESS = 890;
/**
* Ro/Rf (3GPP TS 32.299) WAG PLMN Id AVP code
*/
public static final int WAG_PLMN_ID = 891;
/**
* Ro/Rf (3GPP TS 32.299) WLAN Information AVP code
*/
public static final int WLAN_INFORMATION = 875;
/**
* Ro/Rf (3GPP TS 32.299) WLAN Radio Container AVP code
*/
public static final int WLAN_RADIO_CONTAINER = 892;
/**
* Ro/Rf (3GPP TS 32.299) WLAN Session Id AVP code
*/
public static final int WLAN_SESSION_ID = 1246;
/**
* Ro/Rf (3GPP TS 32.299) WLAN Technology AVP code
*/
public static final int WLAN_TECHNOLOGY = 893;
/**
* Ro/Rf (3GPP TS 32.299) WLAN UE Local IPAddress AVP code
*/
public static final int WLAN_UE_LOCAL_IPADDRESS = 894;
/**
* @return the AVP code.
*/
int getCode();
/**
* @return true if Vendor-id is present in Avp header
*/
boolean isVendorId();
/**
*
* @return true if flag M is set 1
*/
boolean isMandatory();
/**
* @return true if flag E is set 1
*/
boolean isEncrypted();
/**
* @return Vendor-Id if it present (-1 if it not avalible)
*/
long getVendorId();
/**
* @return data as byte array (Raw format)
* @throws AvpDataException
* if data has incorrect format
*/
byte[] getRaw() throws AvpDataException;
/**
* @return data as an String (Use AS-ASCI code page)
* @throws AvpDataException
* if data has incorrect format
*/
byte[] getOctetString() throws AvpDataException;
/**
* @return data as an integer
* @throws AvpDataException
* if data has incorrect format
*/
int getInteger32() throws AvpDataException;
/**
* @return data as an unsigned long
* @throws AvpDataException
* if data has incorrect format
*/
long getInteger64() throws AvpDataException;
/**
* @return data as an unsigned integer
* @throws AvpDataException
* if data has incorrect format
*/
long getUnsigned32() throws AvpDataException;
/**
* @return data as an long
* @throws AvpDataException
* if data has incorrect format
*/
long getUnsigned64() throws AvpDataException;
/**
* @return data as an float
* @throws AvpDataException
* if data has incorrect format
*/
float getFloat32() throws AvpDataException;
/**
*
* @return data as an double
* @throws AvpDataException
* if data has incorrect format
*/
double getFloat64() throws AvpDataException;
/**
* @return data as an Diameter Address (Inet4Address or Inet6Address)
* @throws AvpDataException
* if data has incorrect format
*/
InetAddress getAddress() throws AvpDataException;
/**
* @return data as an Diameter Time (millisecond is truncated)
* @throws AvpDataException
* if data has incorrect format
*/
Date getTime() throws AvpDataException;
/**
* @return data as an String (Use UTF-8 code page)
* @throws AvpDataException
* if data has incorrect format
*/
String getUTF8String() throws AvpDataException;
/**
* @return data as an String (Use AS-ASCI code page)
* @throws AvpDataException
* if data has incorrect format
*/
String getDiameterIdentity() throws AvpDataException;
/**
* @return data as an Diamter URI
* @throws AvpDataException
* if data has incorrect format
*/
URI getDiameterURI() throws AvpDataException;
/**
* @return data as an AVP group.
* @throws AvpDataException
* if data has incorrect format
*/
AvpSet getGrouped() throws AvpDataException;
public byte[] getRawData();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
import java.util.List;
/**
* PeerManager is Diameter Stack PCB(RFC 3588) realization.
* Wrapper interface allows adapt message to any driver vendor specific interface.
* List of wrapper classes:
* - Server API : Network, MutablePeerTable
*
* @author erick.svenson@yahoo.com
* @author artem.litvinov@gmail.com
* @version 1.5.1 Final
*/
public interface PeerTable extends Wrapper {
/**
* Return peer by host name
* @param peerHost host name
* @return peer
*/
Peer getPeer(String peerHost);
/**
* Return no mutable list of peers
* @return List of current stack known peers
*/
List<Peer> getPeerTable();
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This interface is the extended version of the interface configuration and
* allows to receive of a notification about reconfigurations
*
* @author erick.svenson@yahoo.com
* @version 1.5.1 Final
*/
public interface MutableConfiguration extends Configuration {
/**
* Set byte value to configuration
* @param key key of value
* @param value byte value
*/
void setByteValue(int key, byte value);
/**
* Set int value to configuration
* @param key key of value
* @param value int value
*/
void setIntValue(int key, int value);
/**
* Set long value to configuration
* @param key key of value
* @param value long value
*/
void setLongValue(int key, long value);
/**
* Set double value to configuration
* @param key key of value
* @param value double value
*/
void setDoubleValue(int key, double value);
/**
* Set byte array value to configuration
* @param key key of value
* @param value byte array value
*/
void setByteArrayValue(int key, byte[] value);
/**
* Set boolean value to configuration
* @param key key of value
* @param value boolean value
*/
void setBooleanValue(int key, boolean value);
/**
* Set string value to configuration
* @param key key of value
* @param value string value
*/
void setStringValue(int key, String value);
/**
* Set children to configuration
* @param key key of children
* @param value children value
*/
void setChildren(int key, Configuration... value);
/**
* Remove defined key
* @param key array keys of removed entry
*/
void removeValue(int... key);
/**
* Add change configuration listener
* @param listener instance of listener
* @param keys array of observed propertie's keys
* if keys.length == 0 then observed all properties of configuration node
*/
void addChangeListener(ConfigurationListener listener, int... keys);
/**
* Remove change configuration listener
* @param listener instance of listener
* @param keys array of removed listener's keys
*/
void removeChangeListener(ConfigurationListener listener, int... keys);
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
import java.io.Serializable;
import java.net.URISyntaxException;
import java.net.UnknownServiceException;
/**
* This class handles Diameter URIs.
* It only implements parts that are needed for the Diameter URI
*
* @author erick.svenson@yahoo.com
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
* @author Yulian Oifa
* @version 1.5.1 Final
*/
public final class URI implements Comparable, Serializable {
private static final long serialVersionUID = 1L;
private static final String FIELD_PROTOCOL = "protocol=";
private static final String FIELD_TRANSPORT = "transport=";
private static final String SCHEME_SEPARATOR = "://";
private static final String PARAMS_SEPARATOR = ";";
private static final String DEFAULT_SCHEME = "aaa";
private static final int DEFAULT_PORT = 3868;
private String scheme;
private String host;
private int port = -1;
private String path = "";
/**
* Constructor with string parameter
* @param uri String representation of URI
* @throws URISyntaxException which signals that URI has syntax error
* @throws UnknownServiceException which signals that URI has incorrect scheme
*/
public URI(String uri) throws URISyntaxException, UnknownServiceException {
parse(uri);
if (getFQDN() == null || getFQDN().trim().length() == 0) {
throw new URISyntaxException(uri, "Host not found");
}
if (!getScheme().equals("aaa") && !getScheme().equals("aaas")) {
throw new UnknownServiceException(new StringBuilder().append("Unsupported service: ").append(getScheme()).toString());
}
}
/**
* @return scheme for URI
*/
public String getScheme() {
return scheme;
}
/**
* @return host name of URI
*/
public String getFQDN() {
return host;
}
/**
* Returns the port number of this URI, or -1 if this is not set.
* @return the port number of this URI
*/
public int getPort() {
return port == -1 ? DEFAULT_PORT : port;
}
/**
* @return true if this URI is secure
*/
public boolean isSecure() {
return getScheme().endsWith("s");
}
/**
* @return path of this URI
*/
public String getPath() {
return path;
}
/**
* @return protocol parameter of this URI
*/
public String getProtocolParam() {
String[] args = getPath().split(PARAMS_SEPARATOR);
for (String arg : args) {
if (arg.startsWith(FIELD_PROTOCOL)) {
return arg.substring(FIELD_PROTOCOL.length());
}
}
return null;
}
/**
* @return transport parameter of this URI
*/
public String getTransportParam() {
String[] args = getPath().split(PARAMS_SEPARATOR);
for (String arg : args) {
if (arg.startsWith(FIELD_TRANSPORT)) {
return arg.substring(FIELD_TRANSPORT.length());
}
}
return null;
}
/**
* @return String representation of this URI in RFC 3588 format
*/
public String toString() {
StringBuffer rc = new StringBuffer(scheme).append(SCHEME_SEPARATOR).append(host);
if (port != -1) {
rc.append(":").append(port);
}
if (path != null && path.length() > 0) {
rc.append(PARAMS_SEPARATOR).append(path);
}
return rc.toString();
}
private void parse(String uri) throws URISyntaxException {
try {
int schemeStartIndex = uri.indexOf(SCHEME_SEPARATOR);
int schemeEndIndex = 0;
if (schemeStartIndex == -1) {
scheme = DEFAULT_SCHEME;
}
else {
scheme = uri.substring(0, schemeStartIndex);
schemeEndIndex = schemeStartIndex + 3;
schemeStartIndex = uri.indexOf(';', schemeEndIndex);
}
if (schemeStartIndex == -1) {
host = uri.substring(schemeEndIndex);
}
else {
host = uri.substring(schemeEndIndex, schemeStartIndex);
}
int sepIndex = host.indexOf(':');
if (sepIndex != -1) {
port = Integer.parseInt(host.substring(sepIndex + 1));
host = host.substring(0, sepIndex);
}
if (schemeStartIndex != -1)
path = uri.substring(schemeStartIndex + 1);
}
catch (Exception e) {
throw new URISyntaxException(uri, "URI has incorrect format");
}
}
/**
* Indicates whether some other object is "equal to" this one.
* <p>
* The <code>equals</code> method implements an equivalence relation
* on non-null object references:
* <ul>
* <li>It is <i>reflexive</i>: for any non-null reference value
* <code>x</code>, <code>x.equals(x)</code> should return
* <code>true</code>.
* <li>It is <i>symmetric</i>: for any non-null reference values
* <code>x</code> and <code>y</code>, <code>x.equals(y)</code>
* should return <code>true</code> if and only if
* <code>y.equals(x)</code> returns <code>true</code>.
* <li>It is <i>transitive</i>: for any non-null reference values
* <code>x</code>, <code>y</code>, and <code>z</code>, if
* <code>x.equals(y)</code> returns <code>true</code> and
* <code>y.equals(z)</code> returns <code>true</code>, then
* <code>x.equals(z)</code> should return <code>true</code>.
* <li>It is <i>consistent</i>: for any non-null reference values
* <code>x</code> and <code>y</code>, multiple invocations of
* <tt>x.equals(y)</tt> consistently return <code>true</code>
* or consistently return <code>false</code>, provided no
* information used in <code>equals</code> comparisons on the
* objects is modified.
* <li>For any non-null reference value <code>x</code>,
* <code>x.equals(null)</code> should return <code>false</code>.
* </ul>
* <p>
* The <tt>equals</tt> method for class <code>Object</code> implements
* the most discriminating possible equivalence relation on objects;
* that is, for any non-null reference values <code>x</code> and
* <code>y</code>, this method returns <code>true</code> if and only
* if <code>x</code> and <code>y</code> refer to the same object
* (<code>x == y</code> has the value <code>true</code>).
* <p>
* Note that it is generally necessary to override the <tt>hashCode</tt>
* method whenever this method is overridden, so as to maintain the
* general contract for the <tt>hashCode</tt> method, which states
* that equal objects must have equal hash codes.
*
* @param obj the reference object with which to compare.
* @return <code>true</code> if this object is the same as the obj
* argument; <code>false</code> otherwise.
* @see #hashCode()
* @see java.util.Hashtable
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
URI that = (URI) obj;
return getPort() == that.getPort() && !(host != null ?
!host.equals(that.host) : that.host != null) &&
!(path != null ? !path.equals(that.path) : that.path != null) &&
!(scheme != null ? !scheme.equals(that.scheme) : that.scheme != null);
}
/**
* Returns a hash code value for the object. This method is
* supported for the benefit of hashtables such as those provided by
* <code>java.util.Hashtable</code>.
* <p>
* The general contract of <code>hashCode</code> is:
* <ul>
* <li>Whenever it is invoked on the same object more than once during
* an execution of a Java application, the <tt>hashCode</tt> method
* must consistently return the same integer, provided no information
* used in <tt>equals</tt> comparisons on the object is modified.
* This integer need not remain consistent from one execution of an
* application to another execution of the same application.
* <li>If two objects are equal according to the <tt>equals(Object)</tt>
* method, then calling the <code>hashCode</code> method on each of
* the two objects must produce the same integer result.
* <li>It is <em>not</em> required that if two objects are unequal
* according to the {@link java.lang.Object#equals(java.lang.Object)}
* method, then calling the <tt>hashCode</tt> method on each of the
* two objects must produce distinct integer results. However, the
* programmer should be aware that producing distinct integer results
* for unequal objects may improve the performance of hashtables.
* </ul>
* <p>
* As much as is reasonably practical, the hashCode method defined by
* class <tt>Object</tt> does return distinct integers for distinct
* objects. (This is typically implemented by converting the internal
* address of the object into an integer, but this implementation
* technique is not required by the
* Java<font size="-2"><sup>TM</sup></font> programming language.)
*
* @return a hash code value for this object.
* @see java.lang.Object#equals(java.lang.Object)
* @see java.util.Hashtable
*/
public int hashCode() {
int result;
result = (scheme != null ? scheme.hashCode() : 0);
result = 31 * result + (host != null ? host.hashCode() : 0);
result = 31 * result + getPort();
result = 31 * result + (path != null ? path.hashCode() : 0);
return result;
}
/**
* Compares this object with the specified object for order. Returns a
* negative integer, zero, or a positive integer as this object is less
* than, equal to, or greater than the specified object.<p>
*
* In the foregoing description, the notation
* <tt>sgn(</tt><i>expression</i><tt>)</tt> designates the mathematical
* <i>signum</i> function, which is defined to return one of <tt>-1</tt>,
* <tt>0</tt>, or <tt>1</tt> according to whether the value of <i>expression</i>
* is negative, zero or positive.
*
* The implementor must ensure <tt>sgn(x.compareTo(y)) ==
* -sgn(y.compareTo(x))</tt> for all <tt>x</tt> and <tt>y</tt>. (This
* implies that <tt>x.compareTo(y)</tt> must throw an exception iff
* <tt>y.compareTo(x)</tt> throws an exception.)<p>
*
* The implementor must also ensure that the relation is transitive:
* <tt>(x.compareTo(y)>0 && y.compareTo(z)>0)</tt> implies
* <tt>x.compareTo(z)>0</tt>.<p>
*
* Finally, the implementer must ensure that <tt>x.compareTo(y)==0</tt>
* implies that <tt>sgn(x.compareTo(z)) == sgn(y.compareTo(z))</tt>, for
* all <tt>z</tt>.<p>
*
* It is strongly recommended, but <i>not</i> strictly required that
* <tt>(x.compareTo(y)==0) == (x.equals(y))</tt>. Generally speaking, any
* class that implements the <tt>Comparable</tt> interface and violates
* this condition should clearly indicate this fact. The recommended
* language is "Note: this class has a natural ordering that is
* inconsistent with equals."
*
* @param obj the Object to be compared.
* @return a negative integer, zero, or a positive integer as this object
* is less than, equal to, or greater than the specified object.
*
* @throws ClassCastException if the specified object's type prevents it
* from being compared to this Object.
*/
public int compareTo(Object obj) {
if (obj instanceof URI) {
return this.toString().compareTo(obj.toString());
}
else {
return -1;
}
}
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cxdx;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.cxdx.events.JLocationInfoAnswer;
import org.jdiameter.api.cxdx.events.JLocationInfoRequest;
import org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer;
import org.jdiameter.api.cxdx.events.JMultimediaAuthRequest;
import org.jdiameter.api.cxdx.events.JPushProfileRequest;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest;
import org.jdiameter.api.cxdx.events.JServerAssignmentAnswer;
import org.jdiameter.api.cxdx.events.JServerAssignmentRequest;
import org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer;
import org.jdiameter.api.cxdx.events.JUserAuthorizationRequest;
/**
*
* @author <a href="mailto:baranowb@gmail.com">Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ClientCxDxSessionListener {
/**
* Notifies this ClientCxDxSessionListener that the ClientCxDxSession has recived not CxDx message, usually some extension.
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doUserAuthorizationAnswer(ClientCxDxSession session,JUserAuthorizationRequest request,JUserAuthorizationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doServerAssignmentAnswer(ClientCxDxSession session,JServerAssignmentRequest request,JServerAssignmentAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doRegistrationTerminationRequest(ClientCxDxSession session,JRegistrationTerminationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doLocationInformationAnswer(ClientCxDxSession session,JLocationInfoRequest request,JLocationInfoAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doPushProfileRequest(ClientCxDxSession session,JPushProfileRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doMultimediaAuthAnswer(ClientCxDxSession session,JMultimediaAuthRequest request,JMultimediaAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cxdx;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateMachine;
import org.jdiameter.api.cxdx.events.JLocationInfoRequest;
import org.jdiameter.api.cxdx.events.JMultimediaAuthRequest;
import org.jdiameter.api.cxdx.events.JPushProfileAnswer;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationAnswer;
import org.jdiameter.api.cxdx.events.JServerAssignmentRequest;
import org.jdiameter.api.cxdx.events.JUserAuthorizationRequest;
/**
*
* @author <a href="mailto:baranowb@gmail.com">Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ClientCxDxSession extends AppSession, StateMachine {
void sendUserAuthorizationRequest(JUserAuthorizationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendServerAssignmentRequest(JServerAssignmentRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendLocationInformationRequest(JLocationInfoRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendMultimediaAuthRequest(JMultimediaAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendRegistrationTerminationAnswer(JRegistrationTerminationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendPushProfileAnswer(JPushProfileAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cxdx;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppAnswerEvent;
import org.jdiameter.api.app.AppRequestEvent;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.cxdx.events.JLocationInfoRequest;
import org.jdiameter.api.cxdx.events.JMultimediaAuthRequest;
import org.jdiameter.api.cxdx.events.JPushProfileAnswer;
import org.jdiameter.api.cxdx.events.JPushProfileRequest;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationAnswer;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest;
import org.jdiameter.api.cxdx.events.JServerAssignmentRequest;
import org.jdiameter.api.cxdx.events.JUserAuthorizationRequest;
/**
*
* @author <a href="mailto:baranowb@gmail.com">Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ServerCxDxSessionListener {
/**
* Notifies this ClientCxDxSessionListener that the ClientCxDxSession has recived not CxDx message, usually some extension.
* @param session parent application session (FSM)
* @param request request object
* @param answer answer object
* @throws InternalException The InternalException signals that internal error is occurred.
* @throws IllegalDiameterStateException The IllegalStateException signals that session has incorrect state (invalid).
* @throws RouteException The NoRouteException signals that no route exist for a given realm.
* @throws OverloadException The OverloadException signals that destination host is overloaded.
*/
void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doUserAuthorizationRequest(ServerCxDxSession session,JUserAuthorizationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doServerAssignmentRequest(ServerCxDxSession session,JServerAssignmentRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doRegistrationTerminationAnswer(ServerCxDxSession session,JRegistrationTerminationRequest request,JRegistrationTerminationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doLocationInformationRequest(ServerCxDxSession session,JLocationInfoRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doPushProfileAnswer(ServerCxDxSession session,JPushProfileRequest request,JPushProfileAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void doMultimediaAuthRequest(ServerCxDxSession session,JMultimediaAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api.cxdx;
import org.jdiameter.api.IllegalDiameterStateException;
import org.jdiameter.api.InternalException;
import org.jdiameter.api.OverloadException;
import org.jdiameter.api.RouteException;
import org.jdiameter.api.app.AppSession;
import org.jdiameter.api.app.StateMachine;
import org.jdiameter.api.cxdx.events.JLocationInfoAnswer;
import org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer;
import org.jdiameter.api.cxdx.events.JPushProfileRequest;
import org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest;
import org.jdiameter.api.cxdx.events.JServerAssignmentAnswer;
import org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer;
/**
*
* @author <a href="mailto:baranowb@gmail.com">Bartosz Baranowski </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public interface ServerCxDxSession extends AppSession, StateMachine {
void sendUserAuthorizationAnswer(JUserAuthorizationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendServerAssignmentAnswer(JServerAssignmentAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendLocationInformationAnswer(JLocationInfoAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendMultimediaAuthAnswer(JMultimediaAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendRegistrationTerminationRequest(JRegistrationTerminationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
void sendPushProfileRequest(JPushProfileRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException;
}
| Java |
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jdiameter.api;
/**
* This class is container for statistics information.
* For example: Count Request/Answer messages
*
* @author erick.svenson@yahoo.com
* @version 1.5.1 Final
*/
public interface Statistic {
/**
* Return name of statistic
* @return name of statistic
*/
String getName();
/**
* Return description of statistic
* @return description of statistic
*/
String getDescription();
/**
* Enable/Disable collecting statistics
* @param value true for enable statistic
*/
void enable(boolean value);
/**
* Return true is statistic is collecting
* @return true is statistic is collecting
*/
boolean isEnabled();
/**
* Reset all counter in statistic
*/
void reset();
/**
* Return counters of statistics
* @return counters of statistics
*/
StatisticRecord[] getRecords();
}
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.