# com.bea.wsrp.config
ProducerInfo Class

public class ProducerInfo
extends `Object`
implements `Serializable`

Manages information required for a WSRP consumer to invoke a WSRP producer.

The consumer identifies each producer with a `producerHandle` which is a unique string assigned while adding a producer. This handle must be unique within a given web app.

Related Topics

``ProducerManager``

Hierarchy
  `Object`
  `ProducerInfo`

All Implemented Interfaces
  `Serializable`

## Constructor Summary

ProducerInfo()

## Method Summary

`public boolean` | `equals`(`Object` obj)
`public `CookieProtocol.Enum`` | `getCookieProtocol`() Returns the cookie protocol.
`public `String`` | `getDescription`() Returns description of the producer.
`public int` | `getId`() returns the unique ID used for storing the producer information in the database.
`public `String`` | `getMarkupPortUrl`() Returns markup port URL
`public `String`` | `getPortletManagementPortUrl`() Returns portlet management port URL
`public `String`` | `getProducerHandle`() Returns the handle used to identity the producer.
`public `RegistrationContext`` | `getRegistrationContext`() Returns registration context.
`public `String`` | `getRegistrationHandle`() Returns regitration handle of the producer.
`public `String`` | `getRegistrationPortUrl`() Returns registration port URL
`public byte[]` | `getRegistrationState`() Returns optional regitration state associated with the registration with the producer.
`public boolean` | `getRequiresRegistration`() Returns requires registration flag
`public `String`` | `getServiceDescriptionPortUrl`() Returns the service description port URL.
`public `String`` | `getVendor`() Returns the vendor of the producer.
`public `String`` | `getWsdlUrl`() Returns the WSDL URL
`public int` | `hashCode`()
`public boolean` | `isRegistered`() Returns if the consumer has registered with this producer.
`public void` | `setCookieProtocol`(`CookieProtocol.Enum` cookieProtocol) Sets cookie protocol.
`public void` | `setDescription`(`String` description) Sets description.
`public void` | `setId`(int id) Sets the unique ID used for storing the producer information in the database.
`public void` | `setMarkupPortUrl`(`String` markupPortUrl) Sets markup port URL
`public void` | `setPortletManagementPortUrl`(`String` portletManagementPortUrl) Sets portlet management port URL
`public void` | `setProducerHandle`(`String` producerHandle) Sets producer handle
`public void` | `setRegistrationHandle`(`String` registrationHandle) Sets the registration handle.
`public void` | `setRegistrationPortUrl`(`String` registrationPortUrl) Sets registration port URL
`public void` | `setRegistrationState`(byte[] registrationState) Sets registration state.
`public void` | `setRequiresRegistration`(boolean requiresRegistration) Sets whether registration is required or not.
`public void` | `setServiceDescriptionPortUrl`(`String` serviceDescriptionPortUrl) Sets servide description port URL.
`public void` | `setVendor`(`String` vendor) Sets vendor information.
`public void` | `setWsdlUrl`(`String` wsdlUrl) Sets WSDL URL.
`public `String`` | `toString`()

Methods from class `java.lang.`Object``
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

## Constructor Detail

### ProducerInfo

    public ProducerInfo()

## Method Detail

### equals(Object) Method

    public boolean equals(Object obj)

Overrides
  `Object.equals(Object)`

### getCookieProtocol() Method

    public CookieProtocol.Enum getCookieProtocol()

Returns the cookie protocol.

#### Returns

cookie protocol

### getDescription() Method

    public String getDescription()

Returns description of the producer.

#### Returns

description

### getId() Method

    public int getId()

returns the unique ID used for storing the producer information in the database.

#### Returns

id

### getMarkupPortUrl() Method

    public String getMarkupPortUrl()

Returns markup port URL

#### Returns

markup port URL

### getPortletManagementPortUrl() Method

    public String getPortletManagementPortUrl()

Returns portlet management port URL

#### Returns

portlet management port URL

### getProducerHandle() Method

    public String getProducerHandle()

Returns the handle used to identity the producer.

#### Returns

handle

### getRegistrationContext() Method

    public RegistrationContext getRegistrationContext()

Returns registration context.

#### Returns

registration context

### getRegistrationHandle() Method

    public String getRegistrationHandle()

Returns regitration handle of the producer. Returns null if ther producer does not require registration, or if the consumer has not yet registered with this producer.

#### Returns

registration handle

### getRegistrationPortUrl() Method

    public String getRegistrationPortUrl()

Returns registration port URL

#### Returns

registration port URL

### getRegistrationState() Method

    public byte[] getRegistrationState()

Returns optional regitration state associated with the registration with the producer.

### getRequiresRegistration() Method

    public boolean getRequiresRegistration()

Returns requires registration flag

#### Returns

requires registration flag

### getServiceDescriptionPortUrl() Method

    public String getServiceDescriptionPortUrl()

Returns the service description port URL.

#### Returns

service description port URL

### getVendor() Method

    public String getVendor()

Returns the vendor of the producer.

#### Returns

vendor

### getWsdlUrl() Method

    public String getWsdlUrl()

Returns the WSDL URL

#### Returns

WSDL URL

### hashCode() Method

    public int hashCode()

Overrides
  `Object.hashCode()`

### isRegistered() Method

    public boolean isRegistered()

Returns if the consumer has registered with this producer.

#### Returns

boolean

### setCookieProtocol(CookieProtocol.Enum) Method

    public void setCookieProtocol(CookieProtocol.Enum cookieProtocol)

Sets cookie protocol.

#### Parameters

cookieProtocol
  cookie protocol

### setDescription(String) Method

    public void setDescription(String description)

Sets description.

### setId(int) Method

    public void setId(int id)

Sets the unique ID used for storing the producer information in the database.

### setMarkupPortUrl(String) Method

    public void setMarkupPortUrl(String markupPortUrl)

Sets markup port URL

#### Parameters

markupPortUrl
  markup port URL

### setPortletManagementPortUrl(String) Method

    public void setPortletManagementPortUrl(String portletManagementPortUrl)

Sets portlet management port URL

#### Parameters

portletManagementPortUrl
  portlet management port URL

### setProducerHandle(String) Method

    public void setProducerHandle(String producerHandle)

Sets producer handle

### setRegistrationHandle(String) Method

    public void setRegistrationHandle(String registrationHandle)

Sets the registration handle.

### setRegistrationPortUrl(String) Method

    public void setRegistrationPortUrl(String registrationPortUrl)

Sets registration port URL

#### Parameters

registrationPortUrl
  registration port URL

### setRegistrationState(byte[]) Method

    public void setRegistrationState(byte[] registrationState)

Sets registration state.

### setRequiresRegistration(boolean) Method

    public void setRequiresRegistration(boolean requiresRegistration)

Sets whether registration is required or not.

### setServiceDescriptionPortUrl(String) Method

    public void setServiceDescriptionPortUrl(String serviceDescriptionPortUrl)

Sets servide description port URL.

#### Parameters

serviceDescriptionPortUrl
  service description port URL

### setVendor(String) Method

    public void setVendor(String vendor)

Sets vendor information.

### setWsdlUrl(String) Method

    public void setWsdlUrl(String wsdlUrl)

Sets WSDL URL.

### toString() Method

    public String toString()

Overrides
  `Object.toString()`