Class AbstractPort<X extends AbstractPort<X>>
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.model.port.AbstractPort<X>
-
- All Implemented Interfaces:
ConfiguredObject<X>
,ContextProvider
,PermissionedObject
,Port<X>
,TaskExecutorProvider
- Direct Known Subclasses:
AmqpPortImpl
,HttpPortImpl
public abstract class AbstractPort<X extends AbstractPort<X>> extends AbstractConfiguredObject<X> implements Port<X>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.Port
ALLOW_CONFIDENTIAL_OPERATIONS_ON_INSECURE_CHANNELS, AUTHENTICATION_PROVIDER, BINDING_ADDRESS, CLASS_DESCRIPTION, CLIENT_CERT_RECORDER, CONNECTION_MAXIMUM_AUTHENTICATION_DELAY, DEFAULT_BINDING_ADDRESS, DEFAULT_MAX_CONNECTION_AUTHENTICATION_DELAY, KEY_STORE, NEED_CLIENT_AUTH, PORT, PROTOCOLS, TCP_NO_DELAY, TRANSPORTS, TRUST_STORES, WANT_CLIENT_AUTH
-
-
Constructor Summary
Constructors Constructor Description AbstractPort(Map<String,Object> attributes, Container<?> container)
-
Method Summary
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeClose, beforeDelete, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onClose, onCreate, onDelete, onExceptionInOpen, onResolve, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChildDelete
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.Port
getBoundPort, getSSLContext, getTLSSessionCacheSize, getTLSSessionTimeout, start, startAsync
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
getBindingAddress
public String getBindingAddress()
- Specified by:
getBindingAddress
in interfacePort<X extends AbstractPort<X>>
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
validateOnCreate
public void validateOnCreate()
- Overrides:
validateOnCreate
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
onValidate
public void onValidate()
Description copied from class:AbstractConfiguredObject
Validation performed for configured object creation and opening.- Overrides:
onValidate
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
getAuthenticationProvider
public AuthenticationProvider getAuthenticationProvider()
- Specified by:
getAuthenticationProvider
in interfacePort<X extends AbstractPort<X>>
-
isAllowConfidentialOperationsOnInsecureChannels
public boolean isAllowConfidentialOperationsOnInsecureChannels()
- Specified by:
isAllowConfidentialOperationsOnInsecureChannels
in interfacePort<X extends AbstractPort<X>>
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChange
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
getPort
public int getPort()
- Specified by:
getPort
in interfacePort<X extends AbstractPort<X>>
-
getTransports
public Set<Transport> getTransports()
- Specified by:
getTransports
in interfacePort<X extends AbstractPort<X>>
-
getProtocols
public Set<Protocol> getProtocols()
- Specified by:
getProtocols
in interfacePort<X extends AbstractPort<X>>
-
getConnections
public Collection<Connection> getConnections()
- Specified by:
getConnections
in interfacePort<X extends AbstractPort<X>>
-
activate
protected com.google.common.util.concurrent.ListenableFuture<Void> activate()
-
getAddressSpace
public NamedAddressSpace getAddressSpace(String name)
- Specified by:
getAddressSpace
in interfacePort<X extends AbstractPort<X>>
-
onActivate
protected State onActivate()
-
getTlsProtocolAllowList
public List<String> getTlsProtocolAllowList()
- Specified by:
getTlsProtocolAllowList
in interfacePort<X extends AbstractPort<X>>
-
getTlsProtocolDenyList
public List<String> getTlsProtocolDenyList()
- Specified by:
getTlsProtocolDenyList
in interfacePort<X extends AbstractPort<X>>
-
getTlsCipherSuiteAllowList
public List<String> getTlsCipherSuiteAllowList()
- Specified by:
getTlsCipherSuiteAllowList
in interfacePort<X extends AbstractPort<X>>
-
getTlsCipherSuiteDenyList
public List<String> getTlsCipherSuiteDenyList()
- Specified by:
getTlsCipherSuiteDenyList
in interfacePort<X extends AbstractPort<X>>
-
getKeyStore
public KeyStore getKeyStore()
- Specified by:
getKeyStore
in interfacePort<X extends AbstractPort<X>>
-
getTrustStores
public Collection<TrustStore> getTrustStores()
- Specified by:
getTrustStores
in interfacePort<X extends AbstractPort<X>>
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in interfacePort<X extends AbstractPort<X>>
-
getClientCertRecorder
public TrustStore<?> getClientCertRecorder()
- Specified by:
getClientCertRecorder
in interfacePort<X extends AbstractPort<X>>
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in interfacePort<X extends AbstractPort<X>>
-
getSubjectCreator
public SubjectCreator getSubjectCreator(boolean secure, String host)
- Specified by:
getSubjectCreator
in interfacePort<X extends AbstractPort<X>>
-
logOperation
protected void logOperation(String operation)
- Overrides:
logOperation
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
toString
public String toString()
- Overrides:
toString
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
isTlsSupported
public boolean isTlsSupported()
- Specified by:
isTlsSupported
in interfacePort<X extends AbstractPort<X>>
-
updateTLS
public boolean updateTLS()
- Specified by:
updateTLS
in interfacePort<X extends AbstractPort<X>>
-
updateSSLContext
protected abstract boolean updateSSLContext()
-
logCreated
protected void logCreated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logCreated
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
logRecovered
protected void logRecovered(Outcome outcome)
- Overrides:
logRecovered
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
logDeleted
protected void logDeleted(Outcome outcome)
- Overrides:
logDeleted
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
logUpdated
protected void logUpdated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logUpdated
in classAbstractConfiguredObject<X extends AbstractPort<X>>
-
-