ServiceLocationHeader.java
(C) Copyright IBM Corp. 2005, 2006
THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE
("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
You can obtain a current copy of the Common Public License from
http://www.opensource.org/licenses/cpl1.0.php
ATTRRPLY
public static final int ATTRRPLY
ATTRRQST
public static final int ATTRRQST
DAADVERT
public static final int DAADVERT
SAADVERT
public static final int SAADVERT
SRVACK
public static final int SRVACK
SRVDEREG
public static final int SRVDEREG
SRVREG
public static final int SRVREG
SRVRPLY
public static final int SRVRPLY
SRVRQST
public static final int SRVRQST
SRVTYPERPLY
public static final int SRVTYPERPLY
SRVTYPERQST
public static final int SRVTYPERQST
addPreviousResponder
public void addPreviousResponder(InetAddress pInetAddress)
clone
public Object clone()
throws CloneNotSupportedException
getBytesString
public static String getBytesString(byte[] pBuffer,
String pEncoding)
getFunctionCode
public int getFunctionCode()
Getter for functionCode
- Returns the functionCode.
getLength
public int getLength()
Getter for length
getLocale
public Locale getLocale()
Getter for locale
getNumberOfBytes
public int getNumberOfBytes()
Getter for numberOfBytes
- Returns the numberOfBytes.
getNumberOfReplies
public int getNumberOfReplies()
Getter for numberOfReplies
- Returns the numberOfReplies.
getPacketLength
public int getPacketLength()
Getter for packetLength
- Returns the packetLength.
getPayload
public byte[] getPayload()
Getter for payload
getPreviousResponse
public Vector getPreviousResponse()
Getter for previousResponse
- Returns the previousResponse.
getScopes
public Vector getScopes()
Getter for scopes
getString
public byte[] getString(StringBuffer pBuffer,
DataInputStream pStream)
throws ServiceLocationException,
IOException
getStringField
public static byte[] getStringField(StringBuffer pBuffer,
DataInputStream pStream,
String pString)
throws ServiceLocationException,
IOException
getUniqueXID
public static short getUniqueXID()
getVersion
public int getVersion()
Getter for version
getXid
public short getXid()
Getter for xid
incrementNumberOfBytes
public void incrementNumberOfBytes(int pIncrement)
isFresh
public boolean isFresh()
Getter for fresh
isMCast
public boolean isMCast()
Getter for mCast
isOverflow
public boolean isOverflow()
Getter for overflow
parseHeader
public abstract void parseHeader(int pFunctionCode,
DataInputStream pStream)
throws ServiceLocationException,
IOException,
IllegalArgumentException
parseOptions
public abstract void parseOptions(DataInputStream pStream)
throws ServiceLocationException,
IOException,
IllegalArgumentException
putInt
public void putInt(int pValue,
ByteArrayOutputStream pStream)
putInt24
protected void putInt24(int pValue,
ByteArrayOutputStream pStream)
putInteger
public static void putInteger(int pValue,
ByteArrayOutputStream pStream)
putString
public byte[] putString(String pValue,
ByteArrayOutputStream pStream)
putStringField
public static byte[] putStringField(String pString,
ByteArrayOutputStream pStream,
String pEncoding)
serialize
public abstract void serialize(ByteArrayOutputStream pStream,
boolean pUsingMCast,
boolean pUsingStreams)
throws ServiceLocationException
serializeCommaSeparatedList
protected byte[] serializeCommaSeparatedList(Vector pList,
ByteArrayOutputStream pStream)
setErrorCode
public void setErrorCode(short pErrorCode)
Setter for errorCode
pErrorCode
- The errorCode to set.
setFresh
public void setFresh(boolean pFresh)
Setter for fresh
pFresh
- The fresh to set.
setFunctionCode
public void setFunctionCode(int pFunctionCode)
Setter for functionCode
pFunctionCode
- The functionCode to set.
setLength
public void setLength(int pLength)
Setter for length
pLength
- The length to set.
setLocale
public void setLocale(Locale pLocale)
Setter for locale
pLocale
- The locale to set.
setMCast
public void setMCast(boolean pCast)
Setter for mCast
pCast
- The mCast to set.
setNumberOfBytes
public void setNumberOfBytes(int pNumberOfBytes)
Setter for numberOfBytes
pNumberOfBytes
- The numberOfBytes to set.
setNumberOfReplies
public void setNumberOfReplies(int pNumberOfReplies)
Setter for numberOfReplies
pNumberOfReplies
- The numberOfReplies to set.
setOverflow
public void setOverflow(boolean pOverflow)
Setter for overflow
pOverflow
- The overflow to set.
setPacketLength
public void setPacketLength(int pPacketLength)
Setter for packetLength
pPacketLength
- The packetLength to set.
setPayload
public void setPayload(byte[] pPayload)
Setter for payload
pPayload
- The payload to set.
setPreviousResponse
public void setPreviousResponse(Vector pPreviousResponse)
Setter for previousResponse
pPreviousResponse
- The previousResponse to set.
setScopes
public void setScopes(Vector pScopes)
Setter for scopes
pScopes
- The scopes to set.
setVersion
public void setVersion(int pVersion)
Setter for version
pVersion
- The version to set.
setXid
public void setXid(short pXid)
Setter for xid
toString
public String toString()