|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.application.AppPattern
public class AppPattern
AppPattern is an element that constitutes an AppFilter
. An
AppPattern has the following attributes:
AppFilterHandler
may use it for making a decision.
idPattern
specifies an AppID group with a String: a
pair of ranges for Organization IDs and Application IDs. The syntax
is:
"oid1[-oid2][:aid1[-aid2]]"
oid1
and oid2
specify a range of
Organization IDs inclusive. Each of them must be a 32-bit value.
aid1
and aid2
specify a range of
Application IDs inclusive. Each of them must be a 16-bit value.
oid2
and aid2
must be greater than
oid1
and aid1
, respectively.
oid2
is omitted, only oid1
is in
the range.
aid2
is omitted, only aid1
is in
the range.
aid1
and aid2
are omitted,
all Application IDs are in the range.
See AppFilter
for the examples.
AppFilter
,
AppFilterHandler
Field Summary | |
---|---|
static int |
ALLOW
When AppFilter.accept finds a matching
AppPattern with this action, it returns
true . |
static int |
ASK
When AppFilter.accept finds a matching
AppPattern with this action, it asks
AppFilterHandler.accept for the decision. |
static int |
DENY
When AppFilter.accept finds a matching
AppPattern with this action, it returns
false . |
Constructor Summary | |
---|---|
AppPattern(java.lang.String idPattern,
int action,
int priority)
Constructs a new AppPattern with no expiration. |
|
AppPattern(java.lang.String idPattern,
int action,
int priority,
java.util.Date expirationTime,
java.lang.Object info)
Constructs a new AppPattern with an expiration time and MSO private information. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
Indicates whether some other object is "equal to" this one. |
int |
getAction()
Returns the action associated with this AppPattern. |
java.lang.String |
getAppIDPattern()
Returns the pattern string that specifies a group of AppIDs. |
java.util.Date |
getExpirationTime()
Returns the time for this AppPattern to expire or null if it never expires. |
int |
getPriority()
Returns the search order priority of this AppPattern. |
java.lang.Object |
getPrivateInfo()
Returns MSO-private information of this AppPattern. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALLOW
AppFilter.accept
finds a matching
AppPattern
with this action, it returns
true
.
AppFilter.accept(org.dvb.application.AppID)
,
Constant Field Valuespublic static final int DENY
AppFilter.accept
finds a matching
AppPattern
with this action, it returns
false
.
AppFilter.accept(org.dvb.application.AppID)
,
Constant Field Valuespublic static final int ASK
AppFilter.accept
finds a matching
AppPattern
with this action, it asks
AppFilterHandler.accept
for the decision.
AppFilter.accept(org.dvb.application.AppID)
,
AppFilterHandler.accept(org.dvb.application.AppID, org.ocap.application.AppPattern)
,
Constant Field ValuesConstructor Detail |
---|
public AppPattern(java.lang.String idPattern, int action, int priority)
idPattern
- a String to specify an AppID group.action
- an action.priority
- a search order priority.
java.lang.IllegalArgumentException
- idPattern
has a bad
format, action
or priority
is out of
range.public AppPattern(java.lang.String idPattern, int action, int priority, java.util.Date expirationTime, java.lang.Object info)
idPattern
- a String to specify an AppID group.action
- an action.priority
- a search order priority.expirationTime
- time for this AppPattern to expire. null
it never expires.info
- MSO specific information. Can be null
.
java.lang.IllegalArgumentException
- idPattern
has a bad
format, action
or priority
is out of
range.Method Detail |
---|
public java.lang.String getAppIDPattern()
public int getAction()
public int getPriority()
public java.util.Date getExpirationTime()
null
if it never expires.
null
.public java.lang.Object getPrivateInfo()
public boolean equals(java.lang.Object that)
This method does not factor in expirationTime
or
info
attributes, but does compare
idPattern
, action
, and
priority
attributes.
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |